OLD | NEW |
| 1 <!-- Based on fast/repaint/invalidation-with-zero-size-object.html --> |
1 <!doctype html> | 2 <!doctype html> |
2 <script src="resources/text-based-repaint.js"></script> | 3 <script src="resources/paint-invalidation-test.js"></script> |
3 <script> | 4 <script> |
4 function repaintTest() | 5 window.expectedPaintInvalidationObjects = [ |
| 6 "LayoutBlockFlow DIV id='element'", |
| 7 ]; |
| 8 function paintInvalidationTest() |
5 { | 9 { |
6 document.getElementById('element').style.width = '0'; | 10 document.getElementById('element').style.width = '0'; |
7 document.getElementById('element').style.height = '0'; | 11 document.getElementById('element').style.height = '0'; |
8 } | 12 } |
9 | 13 |
10 onload = runRepaintTest; | 14 onload = runPaintInvalidationTest; |
11 </script> | 15 </script> |
12 <style> | 16 <style> |
13 #element { | 17 #element { |
14 width: 200px; | 18 width: 200px; |
15 height: 200px; | 19 height: 200px; |
16 background-color: red; | 20 background-color: red; |
17 } | 21 } |
18 #inner { | 22 #inner { |
19 width: 100%; | 23 width: 100%; |
20 height: 100%; | 24 height: 100%; |
21 } | 25 } |
22 </style> | 26 </style> |
23 <div id='element'> | 27 <div id='element'> |
24 <div id='inner'></div> | 28 <div id='inner'></div> |
25 </div> | 29 </div> |
OLD | NEW |