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

Side by Side Diff: LayoutTests/compositing/fixed-background-composited-html.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: Moved the layout tests. Created 7 years, 6 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
(Empty)
1 <!DOCTYPE html>
2
3 <html>
4 <head>
5 <style>
6 html {
7 -webkit-transform: translateZ(0);
8 }
9 body {
10 height: 2000px;
11 background-image: url('../../../../compositing/resources/simple_imag e.png');
12 background-size: 200px 200px;
13 background-attachment: fixed;
14 overflow: hidden; /* hide scrollbar */
15 }
16 </style>
17 <script>
18 if (window.testRunner) {
19 testRunner.waitUntilDone();
20 window.internals.settings.setForceCompositingMode(true);
21 window.internals.settings.setAcceleratedCompositingForFixedRootBackgroun dEnabled(true);
22 }
23
24
25 function doTest()
26 {
27 window.setTimeout(function() {
jamesr 2013/06/13 19:48:47 what's the setTimeout for?
28 window.scrollTo(0, 223);
29 if (window.testRunner)
30 testRunner.notifyDone();
31 }, 0);
32 }
33
34 window.addEventListener('load', doTest, false);
35 </script>
36 </head>
37 <body>
38 </body>
39 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698