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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/composited-overflow-with-negative-offset-outline.html

Issue 2439113003: Fix the bug that negative outline-offset is covered up by composited (Closed)
Patch Set: Rename decorationLayer to decorationOutlineLayer 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-negative-offset-outline.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/composited-overflow-with-negative-offset-outline.html b/third_party/WebKit/LayoutTests/paint/invalidation/composited-overflow-with-negative-offset-outline.html
new file mode 100644
index 0000000000000000000000000000000000000000..fdd3551bad6a1f96406507fe253b207b62a26b39
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/composited-overflow-with-negative-offset-outline.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<script src="resources/text-based-repaint.js"></script>
+<script>
+function repaintTest() {
+ scroller.style.outline = '1px solid green';
+}
+onload = runRepaintAndPixelTest;
+</script>
+<style>
+#scroller {
+ overflow: scroll;
+ width: 200px;
+ height: 200px;
+ will-change: transform;
+ outline: 1px solid red;
+ outline-offset: -4px;
+}
+
+.spacer {
+ height: 300px;
+}
+</style>
+<!-- #scroller has a negative offset outline which should not be covered up by
+ the scrollbar. When the color changes it should repaint. -->
+<div id="scroller">
+ <div class="spacer"></div>
+</div>

Powered by Google App Engine
This is Rietveld 408576698