blob: 172f00d58ee29853d7b9ed4df97d4a19447ae1fc (
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
<!DOCTYPE html>
<html>
<head>
<title>
CSS Reference Case: Different values of height:auto container in horizontal wm
</title>
<meta charset="utf-8">
<link rel="author" title="Boris Chiou" href="mailto:boris.chiou@gmail.com">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<meta name="flags" content="ahem">
<style>
html,body {
margin: 0;
}
.outer * {
border: 2px solid lime;
}
.container {
width: 80px;
border-color: blue;
display: inline-block;
vertical-align: top;
font-family: Ahem;
font-size: 8px;
line-height: 13px;
}
.too-small {
height: 10px;
}
.too-big {
height: 100px;
}
</style>
</head>
<body>
<div class="outer">
<div class="container">
<div>auto<br>container: min-content.</div>
<div>auto<br>container: min-content.</div>
</div>
<div class="container">
<div class="too-small">10px<br>container: min-content.</div>
<div class="too-small">10px<br>container: min-content.</div>
</div>
<div class="container">
<div class="too-big">100px<br>container: min-content.</div>
<div class="too-big">100px<br>container: min-content.</div>
</div>
<div class="container">
<div>auto<br>container: max-content.</div>
<div>auto<br>container: max-content.</div>
</div>
<div class="container">
<div class="too-small">10px<br>container: max-content.</div>
<div class="too-small">10px<br>container: max-content.</div>
</div>
<div class="container">
<div class="too-big">100px<br>container: max-content.</div>
<div class="too-big">100px<br>container: max-content.</div>
</div>
</div>
<div class="outer">
<div class="container">
<div>auto<br>container: auto.</div>
<div>auto<br>container: auto.</div>
</div>
<div class="container">
<div class="too-small">10px<br>container min-size: min-content.</div>
<div class="too-small">10px<br>container min-size: min-content.</div>
</div>
<div class="container">
<div class="too-small">10px<br>container min-size: max-content.</div>
<div class="too-small">10px<br>container min-size: max-content.</div>
</div>
<div class="container">
<div class="too-big">100px<br>container max-size: min-content.</div>
<div class="too-big">100px<br>container max-size: min-content.</div>
</div>
<div class="container">
<div class="too-big">100px<br>container max-size: max-content.</div>
<div class="too-big">100px<br>container max-size: max-content.</div>
</div>
</div>
</body>
</html>
|