OLD | NEW |
| 1 <!-- Based on fast/repaint/negative-text-indent-with-overflow-hidden.html --> |
1 <!DOCTYPE html> | 2 <!DOCTYPE html> |
2 <html> | 3 <html> |
3 <head> | 4 <head> |
4 <style> | 5 <style> |
5 .container { | 6 .container { |
6 position: absolute; | 7 position: absolute; |
7 left: 550px; | 8 left: 550px; |
8 height: 200px; | 9 height: 200px; |
9 width: 200px; | 10 width: 200px; |
10 background-color: silver; | 11 background-color: silver; |
11 } | 12 } |
12 #target { | 13 #target { |
13 text-indent: -300px; | 14 text-indent: -300px; |
14 width: 200px; | 15 width: 200px; |
15 height: 50px; | 16 height: 50px; |
16 overflow: hidden; | 17 overflow: hidden; |
17 background-color: green; | 18 background-color: green; |
18 } | 19 } |
19 | 20 |
20 #target.changed, #target:hover { | 21 #target.changed, #target:hover { |
21 background-color: blue; | 22 background-color: blue; |
22 } | 23 } |
23 </style> | 24 </style> |
24 <script src="resources/text-based-repaint.js"></script> | 25 <script src="resources/paint-invalidation-test.js"></script> |
25 <script> | 26 <script> |
26 function repaintTest() { | 27 window.expectedPaintInvalidationObjects = [ |
| 28 "LayoutBlockFlow DIV id='target' class='changed'", |
| 29 ]; |
| 30 function paintInvalidationTest() { |
27 document.getElementById('target').classList.add('changed'); | 31 document.getElementById('target').classList.add('changed'); |
28 } | 32 } |
29 </script> | 33 </script> |
30 </head> | 34 </head> |
31 <body onload="runRepaintTest();"> | 35 <body onload="runPaintInvalidationTest();"> |
32 <div class="container"> | 36 <div class="container"> |
33 <div id="target">Hidden Text</div> | 37 <div id="target">Hidden Text</div> |
34 </div> | 38 </div> |
35 </body> | 39 </body> |
36 </html> | 40 </html> |
OLD | NEW |