OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 body { | 5 body { |
6 margin: 100px; | 6 margin: 100px; |
7 height: 3500px; | 7 height: 3500px; |
8 background-image: url('resources/simple_image.png'); | 8 background-image: url('resources/simple_image.png'); |
9 background-size: 200px 200px; | 9 background-size: 200px 200px; |
10 background-attachment: fixed; | 10 background-attachment: fixed; |
11 background-repeat: no-repeat; | 11 background-repeat: no-repeat; |
12 background-position: bottom right; | 12 background-position: bottom right; |
13 } | 13 } |
14 | 14 |
15 .test { | 15 .test { |
16 height: 400px; | 16 height: 400px; |
17 width: 600px; | 17 width: 600px; |
18 background-color: rgba(0, 0, 0, 0.5); | 18 background-color: rgba(0, 0, 0, 0.5); |
19 border: 20px solid orange; | 19 border: 20px solid orange; |
20 } | 20 } |
21 | 21 |
22 #layers { | 22 #layers { |
23 opacity: 0; | 23 opacity: 0; |
24 } | 24 } |
25 </style> | 25 </style> |
26 <script> | 26 <script> |
27 if (window.testRunner) { | 27 if (window.testRunner) { |
28 testRunner.dumpAsText(true); | 28 testRunner.dumpAsTextWithPixelResults(); |
29 window.internals.settings.setForceCompositingMode(true); | 29 window.internals.settings.setForceCompositingMode(true); |
30 window.internals.settings.setAcceleratedCompositingForFixedRootBackgroun
dEnabled(true); | 30 window.internals.settings.setAcceleratedCompositingForFixedRootBackgroun
dEnabled(true); |
31 } | 31 } |
32 | 32 |
33 function doTest() | 33 function doTest() |
34 { | 34 { |
35 window.scrollTo(0, 200); | 35 window.scrollTo(0, 200); |
36 | 36 |
37 if (window.internals) | 37 if (window.internals) |
38 document.getElementById('layers').innerText = internals.layerTreeAsT
ext(document, internals.LAYER_TREE_INCLUDES_ROOT_LAYER); | 38 document.getElementById('layers').innerText = internals.layerTreeAsT
ext(document, internals.LAYER_TREE_INCLUDES_ROOT_LAYER); |
39 } | 39 } |
40 | 40 |
41 window.addEventListener('load', doTest, false); | 41 window.addEventListener('load', doTest, false); |
42 </script> | 42 </script> |
43 </head> | 43 </head> |
44 <body> | 44 <body> |
45 | 45 |
46 <div class="test"></div> | 46 <div class="test"></div> |
47 <pre id="layers"></pre> | 47 <pre id="layers"></pre> |
48 </body> | 48 </body> |
49 </html> | 49 </html> |
OLD | NEW |