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 (two blue rectangles, first: (0,0)-(50%,50%), second: (50%,50%)-(100%
,100%)), especially after resizing the content box to a different size</p> | 6 <p>The svg area contained in the div element (red box), should fill out the
whole area (two blue rectangles, first: (0,0)-(50%,50%), second: (50%,50%)-(100%
,100%)), especially after resizing the content box to a different size</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 <rect id="targetRect" y="50%" width="50%" height="50%" fill="blu
e"/> | 10 <rect id="targetRect" y="50%" width="50%" height="50%" fill="blu
e"/> |
11 <rect id="targetRect1" y="0%" width="50%" height="50%" fill="blu
e"/> | 11 <rect id="targetRect1" y="0%" width="50%" height="50%" fill="blu
e"/> |
12 <use id="targetUse" xlink:href="#targetRect1"/> | 12 <use id="targetUse" xlink:href="#targetRect1"/> |
13 </defs> | 13 </defs> |
14 <use x="50%" xlink:href="#targetRect"/> | 14 <use x="50%" xlink:href="#targetRect"/> |
15 <use xlink:href="#targetUse"/> | 15 <use xlink:href="#targetUse"/> |
16 </svg> | 16 </svg> |
17 </div> | 17 </div> |
18 <script> | 18 <script> |
19 function repaintTest() { | 19 function repaintTest() { |
20 document.getElementById("contentBox").style.setProperty("width", "40
0px"); | 20 document.getElementById("contentBox").style.setProperty("width", "40
0px"); |
21 } | 21 } |
22 </script> | 22 </script> |
23 </body> | 23 </body> |
24 </html> | 24 </html> |
OLD | NEW |