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

Side by Side Diff: LayoutTests/compositing/fixed-body-background-positioned.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 <html>
3 <head>
4 <style>
5 body {
6 margin: 100px;
7 height: 3500px;
8 background-image: url('resources/simple_image.png');
9 background-size: 200px 200px;
10 background-attachment: fixed;
11 background-repeat: no-repeat;
12 background-position: bottom right;
13 }
14
15 .test {
16 height: 400px;
17 width: 600px;
18 background-color: rgba(0, 0, 0, 0.5);
19 border: 20px solid orange;
20 }
21
22 #layers {
23 opacity: 0;
24 }
25 </style>
26 <script>
27 if (window.testRunner) {
28 testRunner.dumpAsText(true);
29 window.internals.settings.setForceCompositingMode(true);
30 window.internals.settings.setAcceleratedCompositingForFixedRootBackgroun dEnabled(true);
31 }
32
33 function doTest()
34 {
35 window.scrollTo(0, 200);
36
37 if (window.internals)
38 document.getElementById('layers').innerText = internals.layerTreeAsT ext(document, internals.LAYER_TREE_INCLUDES_ROOT_LAYER);
39 }
40
41 window.addEventListener('load', doTest, false);
42 </script>
43 </head>
44 <body>
45
46 <div class="test"></div>
47 <pre id="layers"></pre>
48 </body>
49 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698