| OLD | NEW |
| 1 <html xmlns="http://www.w3.org/1999/xhtml"> | 1 <html xmlns="http://www.w3.org/1999/xhtml"> |
| 2 <head> | 2 <head> |
| 3 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> | 3 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
| 4 </head> | 4 </head> |
| 5 <body onload="runRepaintAndPixelTest()"> | 5 <body onload="runRepaintAndPixelTest()"> |
| 6 <p>The svg area contained in the div element (red box), should fill out the
whole area with a green shaped path</p> | 6 <p>The svg area contained in the div element (red box), should fill out the
whole area with a green shaped path</p> |
| 7 <div id="contentBox" style="width: 100px; height: 400px; border: 1px solid r
ed;"> | 7 <div id="contentBox" style="width: 100px; height: 400px; border: 1px solid r
ed;"> |
| 8 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1
999/xlink"> | 8 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1
999/xlink" width="100%" height="100%"> |
| 9 <defs> | 9 <defs> |
| 10 <symbol id="gamesBorder" viewBox="0 0 150 150" > | 10 <symbol id="gamesBorder" viewBox="0 0 150 150" > |
| 11 <path fill="green" d="M143 103 143 117 a27,10 0 1 1 -136 0 L
7 117 7 103 a27,10 0 0 1 136 0 L52 72 a33,33 0 1 1 5 0" /> | 11 <path fill="green" d="M143 103 143 117 a27,10 0 1 1 -136 0 L
7 117 7 103 a27,10 0 0 1 136 0 L52 72 a33,33 0 1 1 5 0" /> |
| 12 </symbol> | 12 </symbol> |
| 13 </defs> | 13 </defs> |
| 14 | 14 |
| 15 <!-- This test is identical to relative-sized-use-on-symbol.xhtml, e
xcept that <use> doesn't contain any attributes. | 15 <!-- This test is identical to relative-sized-use-on-symbol.xhtml, e
xcept that <use> doesn't contain any attributes. |
| 16 This assures that specifying viewBox on the symbol alone is eno
ugh to trigger relayouting --> | 16 This assures that specifying viewBox on the symbol alone is eno
ugh to trigger relayouting --> |
| 17 <use xlink:href="#gamesBorder"/> | 17 <use xlink:href="#gamesBorder"/> |
| 18 </svg> | 18 </svg> |
| 19 </div> | 19 </div> |
| 20 <script> | 20 <script> |
| 21 function repaintTest() { | 21 function repaintTest() { |
| 22 document.getElementById("contentBox").style.setProperty("width", "40
0px"); | 22 document.getElementById("contentBox").style.setProperty("width", "40
0px"); |
| 23 } | 23 } |
| 24 </script> | 24 </script> |
| 25 </body> | 25 </body> |
| 26 </html> | 26 </html> |
| OLD | NEW |