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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/overflow-hidden-to-visible.html

Issue 2007003003: Check subtree paint invalidation when overflow clip status changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 7 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/paint/invalidation/overflow-hidden-to-visible.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/overflow-hidden-to-visible.html b/third_party/WebKit/LayoutTests/paint/invalidation/overflow-hidden-to-visible.html
new file mode 100644
index 0000000000000000000000000000000000000000..c5103306bf0122119dcf832de580647da7ca4755
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/overflow-hidden-to-visible.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+Tests paint invalidation of overflowing contents when the container's overflow changes from hidden to visible.
+Passes if there is no red.
+<div id="indicator" style="position: absolute; z-index: -1; width: 200px; height: 400px; background-color: red"></div>
+<div id="container" style="width: 200px; height: 200px; overflow: hidden">
+ <div style="width: 0; height: 0">
+ <div id="green" style="width: 200px; height: 400px; background-color: green"></div>
+ </div>
+</div>
+<script src="../../resources/run-after-layout-and-paint.js"></script>
+<script>
+runAfterLayoutAndPaint(function() {
+ container.style.overflow = 'visible';
+}, true);
+</script>

Powered by Google App Engine
This is Rietveld 408576698