Status: PASS | Duration: 6ms | Subtests: 1/1 | Open test on wpt.live | wpt.fyi
/svg/text/reftests/textLength-list-y-spacing.svg
<?xml version="1.0" encoding="utf-8"?> <svg xmlns="http://www.w3.org/2000/svg" xmlns:h="http://www.w3.org/1999/xhtml" viewBox="0 0 400 100" class="reftest-wait" onload="document.fonts.ready.then(function() { document.documentElement.classList.remove('reftest-wait'); })"> <metadata> <title>textLength with lengthAdjust=spacing applies across all glyphs of the element when y is a list of identical values</title> <h:link rel="help" href="https://svgwg.org/svg2-draft/text.html#TextElementTextLengthAttribute"/> <h:link rel="help" href="https://bugs.webkit.org/show_bug.cgi?id=61855"/> <h:link rel="match" href="textLength-list-y-spacing-ref.svg"/> <h:link rel="stylesheet" type="text/css" href="/fonts/ahem.css"/> </metadata> <!-- Same as the spacingAndGlyphs case but with lengthAdjust="spacing". Currently expected to FAIL in WebKit: for list-valued y each chunk contains a single character, so per-chunk shift computation divides by (totalCharacters - 1) = 0 and collapses to zero shift — textLength is silently ignored. Follow-up tracked as webkit.org/b/61855 (spacing follow-up) / FIXME in SVGTextChunkBuilder::applyElementLevelTextLength. --> <text x="0" y="80 80 80 80 80 80" font-family="Ahem" font-size="50" textLength="400" lengthAdjust="spacing" fill="black">XXXXXX</text> </svg>