summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/repaint/resize-child-within-overflow.html
blob: 3a28bd66a3bae9c939e1c7b39c9f0acc23f2c9eb (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
26
27
28
29
30
31
<!DOCTYPE html>
<script src="resources/text-based-repaint.js"></script>
<script>
function repaintTest()
{
    document.getElementById('child').style.width = '600px';
}
window.onload = runRepaintTest;
</script>
<style>
body {
    margin: 0;
}
.container {
    position: absolute;
    height: 1000px;
    background-color: blue;
}
#child {
    width: 400px;
}
.overflow {
    width: 800px;
    height: 50px;
}
</style>
<div class="container">
    <div id="child">
        <div class="overflow"></div>
    </div>
</div>