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

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

Issue 479893002: Merge acceleratedCompositingForFixedRootBackground into preferCompositingToLCDText (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
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.dumpAsTextWithPixelResults(); 28 testRunner.dumpAsTextWithPixelResults();
29 window.internals.settings.setAcceleratedCompositingForFixedRootBackgroun dEnabled(true); 29 window.internals.settings.setPreferCompositingToLCDTextEnabled(true);
30 } 30 }
31 31
32 function doTest() 32 function doTest()
33 { 33 {
34 window.scrollTo(0, 200); 34 window.scrollTo(0, 200);
35 35
36 if (window.internals) 36 if (window.internals)
37 document.getElementById('layers').innerText = internals.layerTreeAsT ext(document, internals.LAYER_TREE_INCLUDES_ROOT_LAYER); 37 document.getElementById('layers').innerText = internals.layerTreeAsT ext(document, internals.LAYER_TREE_INCLUDES_ROOT_LAYER);
38 } 38 }
39 39
40 window.addEventListener('load', doTest, false); 40 window.addEventListener('load', doTest, false);
41 </script> 41 </script>
42 </head> 42 </head>
43 <body> 43 <body>
44 44
45 <div class="test"></div> 45 <div class="test"></div>
46 <pre id="layers"></pre> 46 <pre id="layers"></pre>
47 </body> 47 </body>
48 </html> 48 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698