Truly independent web browser
<!DOCTYPE html>
<link rel="match" href="../expected/svg-text-decoration-with-text-length-ref.html" />
<style>
@font-face {
font-family: Ahem;
src: url("../data/fonts/Ahem.ttf");
}
body {
margin: 0;
}
svg {
display: block;
font: 60px Ahem;
}
</style>
<!-- In Ahem, "É" is a box from the baseline up to the ascent. -->
<!-- The space that textLength adds between the characters isn't decorated, nor is any after the last character. -->
<svg width="600" height="400">
<text x="20" y="100" fill="blue" textLength="360" style="text-decoration: underline overline">ÉÉÉ</text>
<text x="20" y="250" fill="blue" textLength="360" style="text-decoration: line-through">É<tspan fill="green">É</tspan>É</text>
<text x="20" y="380" fill="blue" textLength="360" lengthAdjust="spacingAndGlyphs" style="text-decoration: underline">ÉÉÉ</text>
</svg>