blob: 2b64aa316e9faea82ddd7ed90900613c9bbf990a [file] [log] [blame]
<!DOCTYPE html>
<script src="resources/text-based-repaint.js"></script>
<script>
function repaintTest() {
var target = document.getElementById('target');
target.style.left = '200px';
target.offsetLeft;
target.parentNode.removeChild(target);
}
onload = runRepaintAndPixelTest;
</script>
<div style="height: 100px">
Tests invalidation after layouting and then removing a div. The div should disappear without any residue.
</div>
<div id="target" style="position: absolute; width: 100px; height: 100px; background-color: red">
This div should disappear.
</div>