OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 | 3 |
4 <head> | 4 <head> |
5 <script src="../../resources/run-after-display.js"></script> | 5 <script src="../../resources/run-after-display.js"></script> |
6 | 6 |
7 <style> | 7 <style> |
8 #fixed { | 8 #fixed { |
9 position: fixed; | 9 position: fixed; |
10 bottom: 30px; | 10 bottom: 30px; |
11 right: 0px; | 11 right: 0px; |
12 } | 12 } |
13 #abs { | 13 #abs { |
14 position: absolute; | 14 position: absolute; |
15 bottom: 0px; | 15 bottom: 0px; |
16 right: 0px; | 16 right: 0px; |
17 height: 90px; | 17 height: 90px; |
18 width: 360px; | 18 width: 360px; |
19 background: yellow; | 19 background: yellow; |
20 } | 20 } |
21 </style> | 21 </style> |
22 | 22 |
23 <script> | 23 <script> |
24 if (window.testRunner) { | 24 if (window.testRunner) { |
25 testRunner.dumpAsText(); | 25 testRunner.dumpAsText(); |
26 testRunner.waitUntilDone(); | 26 testRunner.waitUntilDone(); |
27 } | 27 } |
28 | 28 |
29 if (window.internals) { | 29 if (window.internals) { |
30 window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled(f
alse); | 30 window.internals.settings.setPreferCompositingToLCDTextEnabled(false); |
31 } | 31 } |
32 | 32 |
33 window.onload = function() { | 33 window.onload = function() { |
34 if (window.internals) | 34 if (window.internals) |
35 window.internals.startTrackingRepaints(document); | 35 window.internals.startTrackingRepaints(document); |
36 | 36 |
37 window.scrollTo(0, 500); | 37 window.scrollTo(0, 500); |
38 | 38 |
39 runAfterDisplay(function() { | 39 runAfterDisplay(function() { |
40 window.scrollTo(0, 0); | 40 window.scrollTo(0, 0); |
(...skipping 14 matching lines...) Expand all Loading... |
55 <body style="height: 4000px;"> | 55 <body style="height: 4000px;"> |
56 <div id="fixed"> | 56 <div id="fixed"> |
57 <div id="abs"> | 57 <div id="abs"> |
58 Hi! | 58 Hi! |
59 </div> | 59 </div> |
60 </div> | 60 </div> |
61 <pre id="layers"></pre> | 61 <pre id="layers"></pre> |
62 </body> | 62 </body> |
63 | 63 |
64 </html> | 64 </html> |
OLD | NEW |