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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/composited-overflow-with-borderbox-background.html

Issue 2511893002: Paint solid color background into both scrolling contents layer and graphics layer. (Closed)
Patch Set: Created 4 years, 1 month 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/paint/invalidation/composited-overflow-with-borderbox-background.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/composited-overflow-with-borderbox-background.html b/third_party/WebKit/LayoutTests/paint/invalidation/composited-overflow-with-borderbox-background.html
new file mode 100644
index 0000000000000000000000000000000000000000..f19bf12856f1f194494043e3412c4ffc76827c08
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/composited-overflow-with-borderbox-background.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<script src="resources/text-based-repaint.js"></script>
+<script>
+function repaintTest() {
+ scroller.style.background = 'green';
+}
+onload = runRepaintAndPixelTest;
+</script>
+<style>
+#scroller {
+ background: red;
+ contain: paint;
+ border: 10px solid rgba(0, 0, 0, 0.5);
+ overflow: scroll;
+ width: 200px;
+ height: 200px;
+}
+
+.spacer {
+ height: 300px;
+}
+</style>
+<!-- #scroller has a solid color border-box background which will be painted
+ into both the scrolling contents and graphics layers. Both of these should
+ be invalidated and repainted when the color changes to green. The border
+ should appear dark green. -->
+<div id="scroller">
+ <div class="spacer"></div>
+</div>

Powered by Google App Engine
This is Rietveld 408576698