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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/compositing/fixed-body-background-positioned.html
diff --git a/LayoutTests/compositing/fixed-body-background-positioned.html b/LayoutTests/compositing/fixed-body-background-positioned.html
new file mode 100644
index 0000000000000000000000000000000000000000..0b73c1c8fa92477e9cfa9652d7b5b407edaed813
--- /dev/null
+++ b/LayoutTests/compositing/fixed-body-background-positioned.html
@@ -0,0 +1,49 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <style>
+ body {
+ margin: 100px;
+ height: 3500px;
+ background-image: url('resources/simple_image.png');
+ background-size: 200px 200px;
+ background-attachment: fixed;
+ background-repeat: no-repeat;
+ background-position: bottom right;
+ }
+
+ .test {
+ height: 400px;
+ width: 600px;
+ background-color: rgba(0, 0, 0, 0.5);
+ border: 20px solid orange;
+ }
+
+ #layers {
+ opacity: 0;
+ }
+ </style>
+ <script>
+ if (window.testRunner) {
+ testRunner.dumpAsText(true);
+ window.internals.settings.setForceCompositingMode(true);
+ window.internals.settings.setAcceleratedCompositingForFixedRootBackgroundEnabled(true);
+ }
+
+ function doTest()
+ {
+ window.scrollTo(0, 200);
+
+ if (window.internals)
+ document.getElementById('layers').innerText = internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_ROOT_LAYER);
+ }
+
+ window.addEventListener('load', doTest, false);
+ </script>
+</head>
+<body>
+
+ <div class="test"></div>
+<pre id="layers"></pre>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698