summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-multicol/multicol-breaking-006-ref.html
blob: 06e92eb8395b77ef33b5754a6743ec05c0159682 (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
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE HTML>
<title>CSS Test Reference: 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/">
<style>

.outer {
  height: 100px;
  width: 800px;
  background: rgba(0, 0, 255, 0.3);
  position: relative;
}

.blueborders {
  position: absolute;
  top: 0;
  left: 194px; /* 188px first column + (16px gap - 4px rule) / 2 */
  width: 200px; /* 188px second column + (16px gap - 4px rule) */
  height: 100px;
  border-left: blue solid 4px;
}

.innerbg {
  height: 100px;
  width: 188px;
  background: rgba(255, 0, 255, 0.3);
  position: absolute;
  top: 0;
}

.inner {
  height: 100px;
  width: 86px;
  font: 16px/1.25 sans-serif;
  position: absolute;
  top: 0;
}

.lefthalf {
  border-right: 2px solid fuchsia;
  padding-right: 7px;
}

.righthalf {
  padding-left: 7px;
}

.border-bottom {
  height: 20px;
  width: 188px;
  background: green;
  position: absolute;
  top: 80px;
}

</style>

<div class="outer">
  <div class="blueborders"></div>
  <div class="innerbg" style="left: 0"></div>
  <div class="inner lefthalf" style="left: 0">
    AAAAA<br>
    BBBBB<br>
    CCCCC<br>
    DDDDD<br>
    EEEEE
  </div>
  <div class="inner righthalf" style="left: 95px">
    FFFFF<br>
    GGGGG<br>
    HHHHH<br>
    IIIII<br>
    JJJJJ
  </div>
  <div class="innerbg" style="left: 204px"></div>
  <div class="inner lefthalf" style="left: 204px">
    KKKKK<br>
    LLLLL<br>
    MMMMM<br>
    NNNNN
  </div>
  <div class="inner righthalf" style="left: 299px">
    OOOOO<br>
    PPPPP<br>
    QQQQQ<br>
  </div>
  <div class="border-bottom" style="left: 204px"></div>
</div>