While working on a project that uses a lot of SVG text and other features, we have encountered some browser specific bugs, mainly Safari/Webkit, most are very old reported bugs and all of them already reported and fixed in Chromium.
[UPDATE: A fix pushed on 14 Jan 2023] SVG textLength not working correctly (Opened 2017, Chromium fixed 2017)
Safari - Bug 171805: SVG textLength not working correctly
Chromium - Issue 719522: SVG textLength not working correctly
In this specific bug (Just to prove a point) the soultion is super simple, it's an off-by-one calculation error, so I took the time to install a local webkit environment, and ported the extremely simple Chromium solution to the Webkit issue, and it works.
All it's missing is fixing the tests.
*As a part of researching this bug I found another related bug - Webkit is taking trailing line break chars into account when calculating textLength.
[UPDATE: Fixed in Safari TP 173] Webkit Ticket
textLength off by one + trailing line break example Codepen
[UPDATE: Fixed in Safari TP 173] SVG Text non-scaling-stroke doesn't work (Opened 2014, Chromium fixed 2015)
Safari - Bug 139322: Setting the "vector-effect" attribute in the SVG <text>
tag to "non-scaling-stroke" has no effect
Chromium - Issue 475203: SVG Text non-scaling-stroke doesn't work
Text non scaling stroke example Codepen
Layer content inside HTML in SVG foreignObject renders in the wrong place (Opened 2009, Chromium fixed 2018)
Safari - Bug 23113: Layer content inside HTML in SVG foreignObject renders in the wrong place
Chromium - Issue 771852: Self-painting PaintLayers underneath <foreignObject>
do not position or size correctly
foreignObject + video + clip example Codepen
[UPDATE: Fixed in Safari TP 173] clip-path on <text>
referenced via <use>
in <clipPath>
is ignored (Chromium fixed 2016)
Safari - Webkit Ticket
Chromium - Issue 604679: clip-path on <text>
referenced via <use>
in <clipPath>
is ignored
and Issue 604677: <text>
referenced via <use>
in <clipPath>
is ignored
There is a ticket maybe related to this one Bug 141929: Changing presentation attributes of shape referenced by <use>
in <clipPath>
breaks clipping
SVG Clip Path with <use>
referencing a <text>
doesn't show example Codepen