blob: e1cc0d7ae8bf831fdb4d1f70459c2d554fc221d4 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
<!DOCTYPE html>
<style>
body {
margin: 0;
}
#outer {
height: 300px;
background-color: yellow;
border: 5px solid blue;
padding: 5px;
}
#middle {
border: 5px solid black;
padding: 5px;
margin: 5px;
}
#middle2 {
border: 10px solid salmon;
padding: 10px;
height: 100%;
margin: 5px;
}
#middle3 {
border: 10px solid purple;
padding: 10px;
margin: 5px;
}
#inner {
-webkit-writing-mode: vertical-lr;
border: 5px solid green;
padding: 5px;
margin: 5px;
}
.inline {
display: inline-block;
width: 20px;
height: 100px;
background-color: orange;
}
</style>
<script>
if (window.testRunner)
testRunner.dumpAsText()
</script>
<script src="../../resources/check-layout.js"></script>
<body onload="checkLayout('.container')">
<div class="container" id="outer" data-expected-height=320>
<div id="middle" data-expected-height=290>
<div id="middle2" data-expected-height=260>
<div id="middle3" data-expected-height=210>
<div id="inner" data-expected-height=160>
<div class="inline"></div>
<div class="inline"></div>
<div class="inline"></div>
</div>
</div>
</div>
</div>
</div>
<div class="container" id="inner" data-expected-height=590>
<div class="inline"></div>
<div class="inline"></div>
<div class="inline"></div>
<div class="inline"></div>
<div class="inline"></div>
<div class="inline"></div>
<div class="inline"></div>
</div>
</body>
|