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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/compositing/fixed-background-negative-z-index-fixed.html
diff --git a/LayoutTests/compositing/fixed-background-negative-z-index-fixed.html b/LayoutTests/compositing/fixed-background-negative-z-index-fixed.html
new file mode 100644
index 0000000000000000000000000000000000000000..8c68470ab9bc05d686be9c8431b996fd6315bc6d
--- /dev/null
+++ b/LayoutTests/compositing/fixed-background-negative-z-index-fixed.html
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+
+<html>
+<head>
+ <style>
+ body {
+ height: 2000px;
+ background-image: url('resources/simple_image.png');
+ background-size: 200px 200px;
+ background-attachment: fixed;
+ overflow: hidden; /* hide scrollbar */
+ }
+ .fixed {
+ position: fixed;
+ z-index: -1;
+ top: 50px;
+ left: 50px;
+ width: 200px;
+ height: 200px;
+ background-color: silver;
+ }
+ </style>
+ <script>
+ if (window.testRunner) {
+ testRunner.waitUntilDone();
+ window.internals.settings.setForceCompositingMode(true);
+ window.internals.settings.setAcceleratedCompositingForFixedRootBackgroundEnabled(true);
+ }
+
+ function doTest()
+ {
+ window.scrollTo(0, 223);
+ if (window.testRunner)
+ testRunner.notifyDone();
+ }
+
+ window.addEventListener('load', doTest, false);
+ </script>
+</head>
+<body>
+
+ <div class="fixed box"></div>
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698