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

Unified Diff: LayoutTests/compositing/backgrounds/fixed-background-on-descendant.html

Issue 102123013: Fix painting of fixed background images in composited layers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added missing DOCTYPEs Created 6 years, 9 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
« no previous file with comments | « no previous file | LayoutTests/compositing/backgrounds/fixed-background-on-descendant-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/compositing/backgrounds/fixed-background-on-descendant.html
diff --git a/LayoutTests/compositing/backgrounds/fixed-background-on-descendant.html b/LayoutTests/compositing/backgrounds/fixed-background-on-descendant.html
new file mode 100644
index 0000000000000000000000000000000000000000..acacc0a6c4c5ffd7aa956b42a84e304b7bb46352
--- /dev/null
+++ b/LayoutTests/compositing/backgrounds/fixed-background-on-descendant.html
@@ -0,0 +1,51 @@
+<!DOCTYPE html>
+<style>
+ body {
+ height: 2000px;
+ width: 2000px;
+ overflow: hidden;
+ }
+
+ .box {
+ width: 300px;
+ height: 300px;
+ margin: 20px;
+ position: relative;
+ }
+
+ body > .box {
+ border: 1px solid black;
+ float: left;
+ }
+ .child {
+ position: absolute;
+ top: 50px;
+ left: 50px;
+ height: 200px;
+ width: 200px;
+ margin-left: 10px;
+ background-image: url('../resources/alpha-blocks.png');
+ background-size: 500px 300px;
+ background-repeat: no-repeat;
+ background-attachment: fixed;
+ border: 4px solid gray;
+ }
+
+ .composited {
+ -webkit-transform: translateZ(0);
+ }
+</style>
+<script>
+ function doTest()
+ {
+ window.scrollTo(35, 45);
+ }
+ window.addEventListener('load', doTest, false);
+</script>
+<div class="composited box">
+ <div class="child box"></div>
+</div>
+
+<div class="composited box">
+ <div class="child box"></div>
+</div>
« no previous file with comments | « no previous file | LayoutTests/compositing/backgrounds/fixed-background-on-descendant-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698