Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: LayoutTests/platform/chromium/compositing/fixed-body-background-positioned.html

Issue 13462003: Add support for accelerated fixed root background (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@background-attachment-fixed2
Patch Set: Adding a FIXME for a bit that'll need fixing. Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2
3 <html> 2 <html>
4 <head> 3 <head>
5 <style> 4 <style>
6 body { 5 body {
7 margin: 100px; 6 margin: 100px;
8 height: 3500px; 7 height: 3500px;
9 background-image: url('../../../../compositing/resources/simple_imag e.png'); 8 background-image: url('../../../compositing/resources/simple_image.p ng');
10 background-size: 200px 200px; 9 background-size: 200px 200px;
11 background-attachment: fixed; 10 background-attachment: fixed;
12 background-repeat: no-repeat; 11 background-repeat: no-repeat;
13 background-position: bottom right; 12 background-position: bottom right;
14 } 13 }
15 14
16 .test { 15 .test {
17 height: 400px; 16 height: 400px;
18 width: 600px; 17 width: 600px;
19 background-color: rgba(0, 0, 0, 0.5); 18 background-color: rgba(0, 0, 0, 0.5);
20 border: 20px solid orange; 19 border: 20px solid orange;
21 } 20 }
22 21
23 #layers { 22 #layers {
24 opacity: 0; 23 opacity: 0;
25 } 24 }
26 </style> 25 </style>
27 <script> 26 <script>
28 if (window.testRunner) 27 if (window.testRunner) {
29 testRunner.dumpAsText(true); 28 testRunner.dumpAsText(true);
29 window.internals.settings.setForceCompositingMode(true);
30 window.internals.settings.setAcceleratedCompositingForFixedRootBackgroun dEnabled(true);
31 }
30 32
31 function doTest() 33 function doTest()
32 { 34 {
33 window.scrollTo(0, 200); 35 window.scrollTo(0, 200);
34 36
35 if (window.internals) 37 if (window.internals)
36 document.getElementById('layers').innerText = internals.layerTreeAsT ext(document, internals.LAYER_TREE_INCLUDES_TILE_CACHES); 38 document.getElementById('layers').innerText = internals.layerTreeAsT ext(document);
37 } 39 }
38 40
39 window.addEventListener('load', doTest, false); 41 window.addEventListener('load', doTest, false);
40 </script> 42 </script>
41 </head> 43 </head>
42 <body> 44 <body>
43 45
44 <div class="test"></div> 46 <div class="test"></div>
45 <pre id="layers"></pre> 47 <pre id="layers"></pre>
46 </body> 48 </body>
47 </html> 49 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698