OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <link rel="stylesheet" href="resources/default.css"> | 3 <link rel="stylesheet" href="resources/default.css"> |
4 <style> | 4 <style> |
5 html { | 5 html { |
6 overflow: scroll; | 6 overflow: scroll; |
7 } | 7 } |
8 </style> | 8 </style> |
9 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip
t> | 9 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip
t> |
10 <script type="text/javascript"> | 10 <script type="text/javascript"> |
11 window.enablePixelTesting = true; | 11 window.enablePixelTesting = true; |
12 window.onload = function() { | 12 window.onload = function() { |
13 window.scrollTo(0, 500); | 13 window.scrollTo(0, 500); |
14 runRepaintTest(); | 14 runRepaintTest(); |
15 }; | 15 }; |
16 | 16 |
17 function repaintTest() | 17 function repaintTest() |
18 { | 18 { |
19 document.getElementById('absoluteDiv').style.top = '700px'; | 19 document.getElementById('absoluteDiv').style.top = '700px'; |
20 } | 20 } |
21 </script> | 21 </script> |
22 </head> | 22 </head> |
23 <body style="height:2000px;"> | 23 <body style="height:2000px;"> |
24 <!-- You should see 1 green rectangle in the output and no red. --> | 24 <!-- You should see 1 green rectangle in the output and no red. --> |
25 <div style="top: 200px; left: 100px;" class="fixed red"></div> | 25 <!-- Force the layer to NOT composite --> |
| 26 <div style="top: 200px; left: 100px;" class="fixed red-alpha"></div> |
26 <div id="absoluteDiv" style="top: 500px; left:100px;" class="absolute green"
></div> | 27 <div id="absoluteDiv" style="top: 500px; left:100px;" class="absolute green"
></div> |
27 </body> | 28 </body> |
28 </html> | 29 </html> |
OLD | NEW |