summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-break/break-inside-avoid-min-block-size-2-ref.html
blob: 70c4049131f7c4f458398c40bb0c1d575a6fa071 (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
<!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">
  <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 {
  block-size: 40px;
  background: blue;
}
.columns > div:nth-child(2n) { background: lightblue; }
  </style>
</head>
<body>
<div class="columns fill" style="block-size:40px">
  <div></div>
  <div></div>
</div>
<div class="columns fill" style="block-size:40px">
  <div>&nbsp;<br>&nbsp;</div>
  <div>&nbsp;<br>&nbsp;</div>
</div>
<div class="columns short">
  <div style="margin-block-end:20px"></div>
  <div></div>
</div>
<div class="columns short">
  <div style="margin-block-end:20px">&nbsp;<br>&nbsp;</div>
  <div>&nbsp;<br>&nbsp;</div>
</div>
<div class="columns tall">
  <div style="margin-block-end:40px"></div>
  <div></div>
</div>
<div class="columns tall">
  <div style="margin-block-end:40px">&nbsp;<br>&nbsp;</div>
  <div>&nbsp;<br>&nbsp;</div>
</div>
<div class="columns fill short">
  <div style="margin-block-end:20px"></div>
  <div></div>
</div>
<div class="columns fill short">
  <div style="margin-block-end:20px">&nbsp;<br>&nbsp;</div>
  <div>&nbsp;<br>&nbsp;</div>
</div>
<div class="columns fill tall">
  <div style="margin-block-end:40px"></div>
  <div></div>
</div>
<div class="columns fill tall">
  <div style="margin-block-end:40px">&nbsp;<br>&nbsp;</div>
  <div>&nbsp;<br>&nbsp;</div>
</div>
</body>
</html>