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

Side by Side Diff: third_party/WebKit/LayoutTests/compositing/overflow/overflow-scroll-with-local-background-and-child.html

Issue 2196583002: Paint local background colors onto foreground layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate test related cleanups and comments. 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
(Empty)
1 <style>
2 #scroller {
3 background: gray local content-box;
4 border: 10px solid rgba(0, 255, 0, 0.5);
5 overflow: scroll;
6 padding: 10px;
7 width: 200px;
8 height: 200px;
9 will-change: transform;
10 }
11
12 .child {
13 width: 30px;
14 height: 30px;
15 padding: 10px;
16 border: 10px solid green;
17 background: green content-box;
18 }
19
20 .spacer {
21 height: 300px;
22 }
23 </style>
24 <!-- When the #scroller is composited, its local attached background will be
25 drawn into the composited layer as well as the background of its non
26 composited .child. This tests that the .child background is drawn
27 correctly to its bounds as they do include borders unlike #scroller. -->
28 <div id="scroller">
29 <div class="child"></div>
30 <div class="spacer"></div>
31 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698