summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/repaint/vertical-align2.html
blob: a209062e18ff82d08debb52a4faa8a8ac76868b5 (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
<!DOCTYPE HTML>
<script src="resources/text-based-repaint.js"></script>
<script>
function repaintTest()
{
    document.getElementById('target').style.verticalAlign = 'middle';
}
window.onload = runRepaintTest;
</script>
<style>
body {
    margin: 0;
}
.other {
    width: 200px;
    height: 200px;
    background-color: blue;
    display: inline-block;
}
#target {
    width: 100px;
    height: 100px;
    background-color: green;
    display: inline-block;
}
</style>
<div class="other"></div><div id="target"></div><div class="other"></div>