OLD | NEW |
1 <?xml version="1.0" encoding="utf-8"?> | 1 <?xml version="1.0" encoding="utf-8"?> |
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x
html1/DTD/xhtml1-strict.dtd"> | 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x
html1/DTD/xhtml1-strict.dtd"> |
3 <html xmlns="http://www.w3.org/1999/xhtml"> | 3 <html xmlns="http://www.w3.org/1999/xhtml"> |
4 <head> | 4 <head> |
5 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> | 5 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
6 </head> | 6 </head> |
7 <body onload="runRepaintAndPixelTest()"> | 7 <body onload="runRepaintAndPixelTest()"> |
8 <svg style="position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px"> | 8 <svg style="position: absolute; top: 0; left: 0; width: 100%; height: 100%"> |
9 <title>You should see the word PASS two times</title> | 9 <title>You should see the word PASS two times</title> |
10 <text id="text" transform="translate(10, 50) scale(10 10)" font-size="12"> | 10 <text id="text" transform="translate(10, 50) scale(10 10)" font-size="12"> |
11 <tspan x="0" y="12">PASS</tspan> | 11 <tspan x="0" y="12">PASS</tspan> |
12 <tspan x="0" y="12" id="remove">FAIL</tspan> | 12 <tspan x="0" y="12" id="remove">FAIL</tspan> |
13 <tspan x="0" y="24">PASS</tspan> | 13 <tspan x="0" y="24">PASS</tspan> |
14 </text> | 14 </text> |
15 </svg> | 15 </svg> |
16 </body> | 16 </body> |
17 <script> | 17 <script> |
18 function repaintTest() { | 18 function repaintTest() { |
19 document.getElementById("text").removeChild(document.getElementById("remove"
)); | 19 document.getElementById("text").removeChild(document.getElementById("remove"
)); |
20 } | 20 } |
21 </script> | 21 </script> |
22 </html> | 22 </html> |
OLD | NEW |