summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/repaint/invalidation-with-zero-size-object.html
blob: 9d3efb99d66670622047b9f08b722897542ae351 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!doctype html>
<script src="resources/text-based-repaint.js"></script>
<script>
    function repaintTest()
    {
      document.getElementById('element').style.width = '0';
      document.getElementById('element').style.height = '0';
    }

    onload = runRepaintTest;
</script>
<style>
    #element {
      width: 200px;
      height: 200px;
      background-color: red;
    }
    #inner {
      width: 100%;
      height: 100%;
    }
</style>
<div id='element'>
  <div id='inner'></div>
</div>