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

Side by Side Diff: LayoutTests/compositing/fixed-background-composited-html.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 html {
7 -webkit-transform: translateZ(0);
8 }
9 body {
10 height: 2000px;
11 background-image: url('resources/simple_image.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.scrollTo(0, 223);
28 if (window.testRunner)
29 testRunner.notifyDone();
30 }
31
32 window.addEventListener('load', doTest, false);
33 </script>
34 </head>
35 <body>
36 </body>
37 </html>
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/compositing/fixed-background-composited-html-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698