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

Side by Side 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: Fixes per review comments 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <style>
esprehn 2014/04/01 22:00:13 <!DOCTYPE html>
2 body {
3 height: 2000px;
4 width: 2000px;
5 overflow: hidden;
6 }
7
8 .box {
9 width: 300px;
10 height: 300px;
11 margin: 20px;
12 position: relative;
13 }
14
15 body > .box {
16 border: 1px solid black;
17 float: left;
18 }
19 .child {
20 position: absolute;
21 top: 50px;
22 left: 50px;
23 height: 200px;
24 width: 200px;
25 margin-left: 10px;
26 background-image: url('../resources/alpha-blocks.png');
27 background-size: 500px 300px;
28 background-repeat: no-repeat;
29 background-attachment: fixed;
30 border: 4px solid gray;
31 }
32
33 .composited {
34 -webkit-transform: translateZ(0);
35 }
36 </style>
37 <script>
38 function doTest()
39 {
40 window.scrollTo(35, 45);
41 }
42 window.addEventListener('load', doTest, false);
43 </script>
44 <div class="composited box">
45 <div class="child box"></div>
46 </div>
47
48 <div class="composited box">
49 <div class="child box"></div>
50 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698