summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/repaint/remove-block-after-layout.html
blob: a83b8a6e772766263d8fa77f63c4d28a1d7c98c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!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 = runRepaintTest;
</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>