Repository navigation
Expand file tree
/
Copy pathvert-block-size-small-or-larger-than-container-with-min-or-max-content-1.html
More file actions
97 lines (85 loc) · 2.57 KB
/
Copy pathvert-block-size-small-or-larger-than-container-with-min-or-max-content-1.html
File metadata and controls
97 lines (85 loc) · 2.57 KB
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
95
96
97
<!DOCTYPE html>
<html>
<head>
<title>
CSS Test: Different values of block sizing properties with max-content and min-content in vertical wm
</title>
<meta charset="utf-8">
<link rel="author" title="Boris Chiou" href="mailto:boris.chiou@gmail.com">
<link rel="help" href="https://drafts.csswg.org/css-sizing/#sizing-values">
<link rel="match" href="vert-block-size-small-or-larger-than-container-with-min-or-max-content-1-ref.html">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<link rel="stylesheet" type="text/css" href="support/min-content-max-content.css">
<style>
html,body {
margin: 0;
}
.container {
width: 200px;
height: 120px;
border: 2px solid blue;
writing-mode: vertical-lr;
}
.container > * {
border: 2px solid lime;
font-size: 15px;
font-family: Ahem;
font-size: 10px;
line-height: 15px;
}
.too-small {
width: 10px;
}
.too-big {
width: 120px;
}
</style>
</head>
<body>
<div style="display: inline-block;">
<div class="container">
<div class="width-min-content">width: min-content<br>on this box.</div>
<div class="width-max-content">width: max-content<br>on this box.</div>
</div>
<div class="container">
<div class="too-small min-width-min-content">
min-width: min-content<br>on this box.
</div>
<div class="too-small min-width-max-content">
min-width: max-content<br>on this box.
</div>
</div>
<div class="container">
<div class="too-big max-width-min-content">
max-width: min-content<br>on this box.
</div>
<div class="too-big max-width-max-content">
max-width: max-content<br>on this box.
</div>
</div>
</div>
<div style="display: inline-block;">
<div class="container">
<div class="block-min-content">block: min-content<br>on this box.</div>
<div class="block-max-content">block: max-content<br>on this box.</div>
</div>
<div class="container">
<div class="too-small min-block-min-content">
min-block: min-content<br>on this box.
</div>
<div class="too-small min-block-max-content">
min-block: max-content<br>on this box.
</div>
</div>
<div class="container">
<div class="too-big max-block-min-content">
max-block: min-content<br>on this box.
</div>
<div class="too-big max-block-max-content">
max-block: max-content<br>on this box.
</div>
</div>
</div>
</body>
</html>