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

Side by Side Diff: LayoutTests/compositing/fixed-background-composited-html.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 2
3 <html> 3 <html>
4 <head> 4 <head>
5 <style> 5 <style>
6 html { 6 html {
7 -webkit-transform: translateZ(0); 7 -webkit-transform: translateZ(0);
8 } 8 }
9 body { 9 body {
10 height: 2000px; 10 height: 2000px;
11 background-image: url('resources/simple_image.png'); 11 background-image: url('resources/simple_image.png');
12 background-size: 200px 200px; 12 background-size: 200px 200px;
13 background-attachment: fixed; 13 background-attachment: fixed;
14 overflow: hidden; /* hide scrollbar */ 14 overflow: hidden; /* hide scrollbar */
15 } 15 }
16 </style> 16 </style>
17 <script> 17 <script>
18 if (window.testRunner) { 18 if (window.testRunner) {
19 testRunner.waitUntilDone(); 19 testRunner.waitUntilDone();
20 window.internals.settings.setAcceleratedCompositingForFixedRootBackgroun dEnabled(true); 20 window.internals.settings.setPreferCompositingToLCDTextEnabled(true);
21 } 21 }
22 22
23 23
24 function doTest() 24 function doTest()
25 { 25 {
26 window.scrollTo(0, 223); 26 window.scrollTo(0, 223);
27 if (window.testRunner) 27 if (window.testRunner)
28 testRunner.notifyDone(); 28 testRunner.notifyDone();
29 } 29 }
30 30
31 window.addEventListener('load', doTest, false); 31 window.addEventListener('load', doTest, false);
32 </script> 32 </script>
33 </head> 33 </head>
34 <body> 34 <body>
35 </body> 35 </body>
36 </html> 36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698