OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <style> | 2 <style> |
3 #container { | 3 #container { |
4 opacity: 0; | 4 opacity: 0; |
5 font: 10px/1 Ahem; | 5 font: 10px/1 Ahem; |
6 } | 6 } |
7 | 7 |
8 #absolute { | 8 #absolute { |
9 position: absolute; | 9 position: absolute; |
10 top: 2000px; | 10 top: 2000px; |
11 font: 50px/1 Sherif; | 11 font: 50px/1 Sherif; |
12 } | 12 } |
13 </style> | 13 </style> |
14 <div id="container"> | 14 <div id="container"> |
15 <div id="absolute"> | 15 <div id="absolute"> |
16 <p>This test checks that switching opacity invalidates the full subtree.
</p> | 16 <p>This test checks that switching opacity invalidates the full subtree.
</p> |
17 <p>This text should be visible in the output.</p> | 17 <p>This text should be visible in the output.</p> |
18 </div> | 18 </div> |
19 </div> | 19 </div> |
20 <script src="resources/text-based-repaint.js"></script> | 20 <script src="resources/text-based-repaint.js"></script> |
21 <script> | 21 <script> |
22 | 22 |
23 function repaintTest() { | 23 function repaintTest() { |
24 window.scrollTo(0, 2000); | 24 window.scrollTo(0, 2000); |
25 container.style.opacity = "1"; | 25 container.style.opacity = "1"; |
26 }; | 26 }; |
27 runRepaintAndPixelTest(); | 27 runRepaintAndPixelTest(); |
28 </script> | 28 </script> |
OLD | NEW |