blob: e7669d8ebe13ca5a7d161f9e27feb0dd26d6de09 (
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
|
<!DOCTYPE html>
<html>
<head>
<title>CSS Test: break-inside:avoid min-block-size block</title>
<link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.com">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1711630">
<link rel="help" href="https://drafts.csswg.org/css-break">
<link rel="match" href="break-inside-avoid-min-block-size-2-ref.html">
<style>
html,body {
color:black; background-color:white; font:10px/1 monospace; padding:0; margin:0;
writing-mode: vertical-rl;
}
.columns {
columns: 3;
background: grey;
margin-block-end: 1px;
inline-size: 500px;
}
.fill {
column-fill: auto;
}
.short {
block-size: 30px;
}
.tall {
block-size: 60px;
}
.columns > div {
break-inside: avoid;
min-block-size: 40px;
background: blue;
}
.columns > div:nth-child(2n) { background: lightblue; }
</style>
</head>
<body>
<div class="columns">
<div></div>
<div></div>
</div>
<div class="columns">
<div> <br> </div>
<div> <br> </div>
</div>
<div class="columns short">
<div></div>
<div></div>
</div>
<div class="columns short">
<div> <br> </div>
<div> <br> </div>
</div>
<div class="columns tall">
<div></div>
<div></div>
</div>
<div class="columns tall">
<div> <br> </div>
<div> <br> </div>
</div>
<div class="columns fill short">
<div></div>
<div></div>
</div>
<div class="columns fill short">
<div> <br> </div>
<div> <br> </div>
</div>
<div class="columns fill tall">
<div></div>
<div></div>
</div>
<div class="columns fill tall">
<div> <br> </div>
<div> <br> </div>
</div>
</body>
</html>
|