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> |