summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-multicol/multicol-breaking-004.html
blob: 10c48c07d179a13ea06ac894e9e5eb9a01845b5d (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
<!DOCTYPE HTML>
<title>CSS Test: breaking of a multicolumn</title>
<meta charset="utf-8">
<link rel="author" title="L. David Baron" href="https://dbaron.org/">
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
<link rel="author" title="Mozilla" href="https://mozilla.org/">
<link rel="help" href="https://drafts.csswg.org/css-multicol/#column-gaps-and-rules">
<link rel="help" href="https://drafts.csswg.org/css-multicol/#cf">
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/2309">
<link rel="help" href="https://drafts.csswg.org/css-break/#break-decoration">
<link rel="match" href="multicol-breaking-004-ref.html">
<style>

.outer {
  height: 125px;
  column-fill: auto;
  width: 800px;
  column-count: 4;
  column-rule: 4px solid blue;
  column-gap: 16px;
  background: rgba(0, 0, 255, 0.3);
}

.inner {
  column-count: 2;
  column-rule: 2px solid fuchsia;
  column-gap: 16px;
  background: rgba(255, 0, 255, 0.3);
  font: 16px/1.25 sans-serif;
  border: solid green;
  border-width: 0 0 25px 0;
  box-decoration-break: clone;
}

</style>

<div class="outer">
  <div class="inner" style="height: 300px">
    AAAAA<br>
    BBBBB<br>
    CCCCC<br>
    DDDDD<br>
    EEEEE<br>
    FFFFF<br>
    GGGGG<br>
    HHHHH<br>
    IIIII<br>
    JJJJJ<br>
    KKKKK<br>
    LLLLL<br>
    MMMMM<br>
    NNNNN<br>
    OOOOO<br>
    PPPPP<br>
    QQQQQ
  </div>
</div>