summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-break/break-inside-avoid-min-block-size-1.html
blob: 733aae58d6fffb3af0739cfa503fa802ee3e7735 (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
<!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-1-ref.html">
  <style>
html,body {
    color:black; background-color:white; font:10px/1 monospace; padding:0; margin:0;
}
.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>&nbsp;<br>&nbsp;</div>
  <div>&nbsp;<br>&nbsp;</div>
</div>
<div class="columns short">
  <div></div>
  <div></div>
</div>
<div class="columns short">
  <div>&nbsp;<br>&nbsp;</div>
  <div>&nbsp;<br>&nbsp;</div>
</div>
<div class="columns tall">
  <div></div>
  <div></div>
</div>
<div class="columns tall">
  <div>&nbsp;<br>&nbsp;</div>
  <div>&nbsp;<br>&nbsp;</div>
</div>
<div class="columns fill short">
  <div></div>
  <div></div>
</div>
<div class="columns fill short">
  <div>&nbsp;<br>&nbsp;</div>
  <div>&nbsp;<br>&nbsp;</div>
</div>
<div class="columns fill tall">
  <div></div>
  <div></div>
</div>
<div class="columns fill tall">
  <div>&nbsp;<br>&nbsp;</div>
  <div>&nbsp;<br>&nbsp;</div>
</div>
</body>
</html>