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

Unified Diff: third_party/WebKit/LayoutTests/compositing/overflow/overflow-scroll-with-local-background-and-child-expected.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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/compositing/overflow/overflow-scroll-with-local-background-and-child-expected.html
diff --git a/third_party/WebKit/LayoutTests/compositing/overflow/overflow-scroll-with-local-background-and-child-expected.html b/third_party/WebKit/LayoutTests/compositing/overflow/overflow-scroll-with-local-background-and-child-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..a5c9682311aa4f264beb9cc25be59febbab15125
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/compositing/overflow/overflow-scroll-with-local-background-and-child-expected.html
@@ -0,0 +1,30 @@
+<style>
+#scroller {
+ background: gray local content-box;
+ border: 10px solid rgba(0, 255, 0, 0.5);
+ overflow: scroll;
+ padding: 10px;
+ width: 200px;
+ height: 200px;
+}
+
+.child {
+ width: 30px;
+ height: 30px;
+ padding: 10px;
+ border: 10px solid green;
+ background: green content-box;
+}
+
+.spacer {
+ height: 300px;
+}
+</style>
+<!-- When the #scroller is composited, its local attached background will be
+ drawn into the composited layer as well as the background of its non
+ composited .child. This tests that the .child background is drawn
+ correctly to its bounds as they do include borders unlike #scroller. -->
+<div id="scroller">
+ <div class="child"></div>
+ <div class="spacer"></div>
+</div>

Powered by Google App Engine
This is Rietveld 408576698