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

Unified Diff: LayoutTests/compositing/backgrounds/fixed-backgrounds.html

Issue 102123013: Fix painting of fixed background images in composited layers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 12 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/backgrounds/fixed-backgrounds.html
diff --git a/LayoutTests/compositing/backgrounds/fixed-backgrounds.html b/LayoutTests/compositing/backgrounds/fixed-backgrounds.html
new file mode 100644
index 0000000000000000000000000000000000000000..6d608d4d6b27f997c38d6b3f6bc12057342fd62e
--- /dev/null
+++ b/LayoutTests/compositing/backgrounds/fixed-backgrounds.html
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+
+<html>
+<head>
+ <style>
+ body {
+ height: 2000px;
+ width: 2000px;
+ overflow: hidden;
+ }
+
+ .box {
+ height: 300px;
+ width: 300px;
+ margin: 20px;
+ margin-left: 10px;
+ background-image: url('../resources/alpha-blocks.png');
+
+ background-size: 500px 300px;
+ background-repeat: no-repeat;
+ background-attachment: fixed;
+ box-shadow: 10px 10px 0px gray; /* inflates composited bounds */
+ border: 4px solid gray;
+ float: left;
+ }
+
+ .composited {
+ -webkit-transform: translateZ(0);
+ }
+ </style>
+ <script>
+ function doTest()
+ {
+ window.scrollTo(35, 45);
+ }
+ window.addEventListener('load', doTest, false);
+ </script>
+</head>
+<body>
+
+<div class="composited box"></div>
+<div class="composited box"></div>
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698