| Index: third_party/WebKit/LayoutTests/paint/invalidation/overflow-visible-to-hidden.html
|
| diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/overflow-visible-to-hidden.html b/third_party/WebKit/LayoutTests/paint/invalidation/overflow-visible-to-hidden.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2f29e9b4724a56c9368b54316c5b53cf3a49f3b0
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/paint/invalidation/overflow-visible-to-hidden.html
|
| @@ -0,0 +1,15 @@
|
| +<!DOCTYPE html>
|
| +Tests paint invalidation of overflowing contents when the container's overflow changes from visible to hidden.
|
| +Passes if there is no red.
|
| +<div id="container" style="width: 200px; height: 200px; overflow: visible">
|
| + <div style="width: 0; height: 0">
|
| + <div id="green" style="width: 200px; height: 200px; background-color: green"></div>
|
| + <div id="red" style="width: 200px; height: 200px; background-color: red"></div>
|
| + </div>
|
| +</div>
|
| +<script src="../../resources/run-after-layout-and-paint.js"></script>
|
| +<script>
|
| +runAfterLayoutAndPaint(function() {
|
| + container.style.overflow = 'hidden';
|
| +}, true);
|
| +</script>
|
|
|