Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /svg/text/reftests/textLength-list-y-spacing.svg - WPT Dashboard Interop Dashboard
<?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="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>