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

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: Created 6 years, 11 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 <!DOCTYPE html>
2
3 <html>
4 <head>
5 <style>
6 body {
7 height: 2000px;
8 width: 2000px;
9 overflow: hidden;
10 }
11
12 .box {
13 width: 300px;
14 height: 300px;
15 margin: 20px;
16 position: relative;
17 }
18
19 body > .box {
20 border: 1px solid black;
21 float: left;
22 }
23 .child {
24 position: absolute;
25 top: 50px;
26 left: 50px;
27 height: 200px;
28 width: 200px;
29 margin-left: 10px;
30 background-image: url('../resources/alpha-blocks.png');
31 background-size: 500px 300px;
32 background-repeat: no-repeat;
33 background-attachment: fixed;
34 border: 4px solid gray;
35 }
36
37 .composited {
38 -webkit-transform: translateZ(0);
39 }
40 </style>
41 <script>
42 function doTest()
43 {
44 window.scrollTo(35, 45);
45 }
46 window.addEventListener('load', doTest, false);
47 </script>
48 </head>
49 <body>
50
51 <div class="composited box">
52 <div class="child box"></div>
53 </div>
54
55 <div class="composited box">
56 <div class="child box"></div>
57 </div>
58
59 </body>
60 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698