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

Side by Side Diff: LayoutTests/compositing/fixed-background-negative-z-index-fixed.html

Issue 17398002: Add tests and settings plumbing for accelerated fixed root background (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Flagging test as NeedsRebaseline for mac. Created 7 years, 5 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
(Empty)
1 <!DOCTYPE html>
2
3 <html>
4 <head>
5 <style>
6 body {
7 height: 2000px;
8 background-image: url('resources/simple_image.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.scrollTo(0, 223);
33 if (window.testRunner)
34 testRunner.notifyDone();
35 }
36
37 window.addEventListener('load', doTest, false);
38 </script>
39 </head>
40 <body>
41
42 <div class="fixed box"></div>
43
44 </body>
45 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698