blob: 2f29e9b4724a56c9368b54316c5b53cf3a49f3b0 [file] [log] [blame]
<!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>