blob: 7cb36d9aeb4d8b1339699e9c59157c45e1bd7b69 [file] [log] [blame]
<!DOCTYPE html>
Tests overflow recalc when container changes position but no layout is scheduled for descendants.
Passes if the blue square has black box shadow.
<div id="container" style="width: 200px; height: 200px">
<div id="target" style="width: 200px; height: 200px; background-color: blue"></div>
</div>
<script src="../../resources/run-after-layout-and-paint.js"></script>
<script>
runAfterLayoutAndPaint(function() {
container.style.position = 'fixed';
target.style.boxShadow = '50px 50px black';
}, true);
</script>