Truly independent web browser
<!DOCTYPE html>
<link rel="match" href="../expected/svg-text-decoration-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, and "p" a box from the baseline down to the descent. -->
<svg width="800" height="500">
<text x="20" y="100" fill="blue" text-decoration="underline">ÉÉ</text>
<text x="220" y="100" fill="blue" text-decoration="overline">ÉÉ</text>
<text x="420" y="100" fill="blue" style="text-decoration: underline overline line-through"><tspan fill="none">ÉÉ</tspan></text>
<!-- A line is painted as the element that declares it is. A line-through goes over the text, an underline under it. -->
<text x="20" y="250" fill="blue" text-decoration="line-through"><tspan fill="green">É</tspan>É</text>
<text x="220" y="250" fill="red" text-decoration="underline"><tspan fill="green">pp</tspan></text>
<text x="420" y="250" fill="green">É<tspan fill="blue" text-decoration="underline">É</tspan>É</text>
<text x="620" y="250" fill="blue" stroke="green" stroke-width="4" text-decoration="underline"><tspan fill="none" stroke="none">ÉÉ</tspan></text>
<!-- A line follows each stretch of text. -->
<text x="20" y="400" fill="blue" text-decoration="underline">É<tspan dy="-30">É</tspan><tspan x="200" dy="30">É</tspan></text>
<text x="320" y="400" fill="blue" style="text-decoration: underline; text-decoration-thickness: 20px">É</text>
<text x="420" y="400" fill="blue" style="text-decoration: underline; text-decoration-color: red">É</text>
<text x="520" y="400" fill="blue" text-decoration="underline">É<tspan font-size="100">É</tspan></text>
</svg>