summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/box-shadow/shadow-box-resize-writing-mode.html
blob: 5c8991f268040dbe29a7ab6d20788733210883b3 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE html>
<script src="../repaint/resources/text-based-repaint.js"></script>
<script>
function repaintTest()
{
    document.getElementById('target1').style.width = '150px';
    document.getElementById('target2').style.width = '50px';
    document.getElementById('target3').style.height = '150px';
    document.getElementById('target4').style.height = '50px';
}
window.onload = runRepaintTest;
</script>
<style>
body {
    margin: 0;
}
div {
    position: absolute;
    width: 100px;
    height: 100px;
    background-color: green;
    box-shadow: 40px 20px black;
    -webkit-writing-mode: vertical-rl;
}
#target1 {
    top: 100px;
    left: 100px;
}
#target2 {
    top: 100px;
    left: 300px;
}
#target3 {
    top: 300px;
    left: 100px;
}
#target4 {
    top: 300px;
    left: 300px;
}
</style>
<div id="target1"></div>
<div id="target2"></div>
<div id="target3"></div>
<div id="target4"></div>