1 <?xml version=
"1.0" encoding=
"UTF-8" standalone=
"no"?>
2 <svg xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink" onload=
"runRepaintAndPixelTest()">
3 <script xlink:
href=
"../../fast/repaint/resources/text-based-repaint.js"/>
5 <text id=
"text" y=
"50" display=
"none">
6 <tspan id=
"tspan" x=
"50" dy=
"1em">Two lines of text should be visible.
</tspan>
10 function repaintTest() {
11 var tspan1 = document.getElementById(
"tspan");
14 result = tspan1.dy.baseVal.getItem(
0).value;
17 var tspan2 = document.createElementNS(
"http://www.w3.org/2000/svg",
"tspan");
18 tspan2.setAttribute(
"x",
"50");
19 tspan2.setAttribute(
"dy", result);
20 tspan2.textContent =
"Two lines of text should be visible.";
21 document.getElementById(
"text").appendChild(tspan2);
22 document.getElementById(
"text").setAttribute(
"display",
"inline");