OLD | NEW |
| (Empty) |
1 <!-- Based on fast/repaint/scroll-fixed-layer-with-no-visible-content.html --> | |
2 <html> | |
3 <head> | |
4 <title></title> | |
5 <link rel="stylesheet" href="../../../fast/repaint/resources/default.css"></
style> | |
6 <script src="resources/paint-invalidation-test.js" type="text/javascript"></
script> | |
7 <script type="text/javascript"> | |
8 window.onload = function() { | |
9 window.scrollTo(1000, 1000); | |
10 runPaintInvalidationTest(); | |
11 }; | |
12 | |
13 function paintInvalidationTest() | |
14 { | |
15 var moveMeElement = document.getElementById('moveMe'); | |
16 moveMeElement.style.visibility = "visible"; | |
17 moveMeElement.scrollTop = 100; | |
18 moveMeElement.scrollLeft = 150; | |
19 } | |
20 </script> | |
21 </head> | |
22 <body style="height:2000px;"> | |
23 <!-- You should see 1 green rectangle in the output and no red. --> | |
24 <div id="moveMe" style="top: 150px; left: 100px; visibility: hidden" class="
fixed clipped"><div class="absolute green" style="top: 100px; left: 150px;"></di
v></div> | |
25 <!-- Make sure we are scrolled --> | |
26 <div style="top: 0px; left: 0px;" class="absolute red"></div> | |
27 </body> | |
28 </html> | |
OLD | NEW |