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

Side by Side Diff: third_party/WebKit/LayoutTests/compositing/overflow/clear-scroll-parent.html

Issue 2196363002: Modify LayoutTests to prep for compositing solid background scollers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Now it works Created 4 years, 4 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <style> 4 <style>
5 .container { 5 .container {
6 height: 200px; 6 height: 200px;
7 width: 300px; 7 width: 300px;
8 border: 4px solid black; 8 border: 4px solid black;
9 overflow-y: scroll; 9 overflow-y: scroll;
10 resize: both; 10 resize: both;
11 background-color: rgba(0,0,255,0.5);
flackr 2016/08/02 15:02:44 It looks like .container had a transparent backgro
Stephen Chennney 2016/08/02 19:00:00 I added this to make sure that we also paint the c
11 } 12 }
12 13
13 .box { 14 .box {
14 position: relative; 15 position: relative;
15 z-index: 1; 16 z-index: 1;
16 height: 100px; 17 height: 100px;
17 width: 100px; 18 width: 100px;
18 margin: 10px; 19 margin: 10px;
19 background-color: blue; 20 background-color: rgba(0,0,255,0.5);
20 } 21 }
21 22
22 23
23 #fixed { 24 #fixed {
24 position: fixed; 25 position: fixed;
25 z-index: 0; 26 z-index: 0;
26 background-color: green; 27 background-color: green;
27 left: 50px; 28 left: 50px;
28 top: 200px; 29 top: 200px;
29 height: 200px; 30 height: 200px;
30 width: 200px; 31 width: 200px;
31 } 32 }
32 33
33 .red { 34 .red {
34 background-color: red; 35 background-color: rgba(255,0,0,0.5);
35 } 36 }
36 37
37 .clip { 38 .clip {
38 width: 80px; 39 width: 80px;
39 height: 80px; 40 height: 80px;
40 overflow: hidden; 41 overflow: hidden;
41 } 42 }
42 43
43 </style> 44 </style>
44 <script> 45 <script>
(...skipping 30 matching lines...) Expand all
75 <div id='clip'> 76 <div id='clip'>
76 <div class="box red"></div> 77 <div class="box red"></div>
77 </div> 78 </div>
78 <div class="box"></div> 79 <div class="box"></div>
79 <div class="box"></div> 80 <div class="box"></div>
80 <div class="box"></div> 81 <div class="box"></div>
81 <div class="box"></div> 82 <div class="box"></div>
82 </div> 83 </div>
83 </body> 84 </body>
84 </html> 85 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698