OLD | NEW |
| 1 <!-- Based on fast/repaint/subtree-root-clip.html --> |
1 <!DOCTYPE HTML> | 2 <!DOCTYPE HTML> |
2 <html> | 3 <html> |
3 <head> | 4 <head> |
4 <script src="resources/text-based-repaint.js"></script> | 5 <script src="resources/paint-invalidation-test.js"></script> |
5 <script> | 6 <script> |
6 function repaintTest() | 7 window.expectedPaintInvalidationObjects = [ |
| 8 "LayoutBlockFlow (floating) DIV", |
| 9 "LayoutBlockFlow DIV id='inner'", |
| 10 ]; |
| 11 function paintInvalidationTest() |
7 { | 12 { |
8 document.getElementById("inner").style.width = "0"; | 13 document.getElementById("inner").style.width = "0"; |
9 } | 14 } |
10 </script> | 15 </script> |
11 </head> | 16 </head> |
12 <body onload="runRepaintTest()"> | 17 <body onload="runPaintInvalidationTest()"> |
13 <div style="float: left; overflow: hidden; width: 100px; height: 100px; backgrou
nd-color: green;"> | 18 <div style="float: left; overflow: hidden; width: 100px; height: 100px; backgrou
nd-color: green;"> |
14 <div id="inner" style="width: 100px; height: 100px; background-color: red;">
</div> | 19 <div id="inner" style="width: 100px; height: 100px; background-color: red;">
</div> |
15 </div> | 20 </div> |
16 </body> | 21 </body> |
17 </html> | 22 </html> |
OLD | NEW |