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

Side by Side Diff: LayoutTests/compositing/fixed-background-negative-z-index-fixed.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 body {
7 height: 2000px;
8 background-image: url('../../../../compositing/resources/simple_imag e.png');
9 background-size: 200px 200px;
10 background-attachment: fixed;
11 overflow: hidden; /* hide scrollbar */
12 }
13 .fixed {
14 position: fixed;
15 z-index: -1;
16 top: 50px;
17 left: 50px;
18 width: 200px;
19 height: 200px;
20 background-color: silver;
21 }
22 </style>
23 <script>
24 if (window.testRunner) {
25 testRunner.waitUntilDone();
26 window.internals.settings.setForceCompositingMode(true);
27 window.internals.settings.setAcceleratedCompositingForFixedRootBackgroun dEnabled(true);
28 }
29
30 function doTest()
31 {
32 window.setTimeout(function() {
jamesr 2013/06/13 19:48:47 what's the setTimeout for?
33 window.scrollTo(0, 223);
34 if (window.testRunner)
35 testRunner.notifyDone();
36 }, 0);
37 }
38
39 window.addEventListener('load', doTest, false);
40 </script>
41 </head>
42 <body>
43
44 <div class="fixed box"></div>
45
46 </body>
47 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698