OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style type="text/css"> | 4 <style type="text/css"> |
5 .absolute { | 5 .absolute { |
6 background-color: green; | 6 background-color: green; |
7 height: 96px; | 7 height: 96px; |
8 position: absolute; | 8 position: absolute; |
9 top: 0; | 9 top: 0; |
10 left: 0; | 10 left: 0; |
(...skipping 16 matching lines...) Expand all Loading... |
27 padding-top: 24px; | 27 padding-top: 24px; |
28 margin: 64px 0px 1920px 0px; | 28 margin: 64px 0px 1920px 0px; |
29 width: 100%; | 29 width: 100%; |
30 height: 40px; | 30 height: 40px; |
31 -webkit-transform: translateZ(0); | 31 -webkit-transform: translateZ(0); |
32 } | 32 } |
33 </style> | 33 </style> |
34 <script src="../../fast/repaint/resources/repaint.js"></script> | 34 <script src="../../fast/repaint/resources/repaint.js"></script> |
35 <script type="text/javascript" charset="utf-8"> | 35 <script type="text/javascript" charset="utf-8"> |
36 if (window.testRunner) { | 36 if (window.testRunner) { |
37 testRunner.dumpAsText(true); | 37 testRunner.dumpAsTextWithPixelResults(); |
38 testRunner.waitUntilDone(); | 38 testRunner.waitUntilDone(); |
39 } | 39 } |
40 | 40 |
41 function repaintTest() | 41 function repaintTest() |
42 { | 42 { |
43 window.scrollBy(0,-96); | 43 window.scrollBy(0,-96); |
44 if (window.testRunner) | 44 if (window.testRunner) |
45 testRunner.notifyDone(); | 45 testRunner.notifyDone(); |
46 } | 46 } |
47 | 47 |
48 function doTest() | 48 function doTest() |
49 { | 49 { |
50 window.scrollBy(0,-2048); | 50 window.scrollBy(0,-2048); |
51 window.scrollBy(0,160); | 51 window.scrollBy(0,160); |
52 runRepaintTest(); | 52 runRepaintTest(); |
53 } | 53 } |
54 window.addEventListener('load', doTest, false); | 54 window.addEventListener('load', doTest, false); |
55 </script> | 55 </script> |
56 </head> | 56 </head> |
57 <body> | 57 <body> |
58 <div class="absolute"></div> | 58 <div class="absolute"></div> |
59 <div class="fixed"></div> | 59 <div class="fixed"></div> |
60 <div class="transformed"></div> | 60 <div class="transformed"></div> |
61 <p> For this test to pass, you should not see a red line when scroll positio
n is less or equal to 64px from the top. </p> | 61 <p> For this test to pass, you should not see a red line when scroll positio
n is less or equal to 64px from the top. </p> |
62 </body> | 62 </body> |
63 </html> | 63 </html> |
OLD | NEW |