Bug 1731994: part 4) Declare more methods around `ContentPermissionRequestBase` ...
[gecko.git] / layout / reftests / flexbox / pagination / flexbox-single-column-1e.html
blob96176b4c727ae8bcef792840f108fddc262b4148
1 <!DOCTYPE html>
2 <!-- Any copyright is dedicated to the Public Domain.
3 http://creativecommons.org/publicdomain/zero/1.0/ -->
4 <html>
5 <meta charset="utf-8">
6 <title>CSS Flexbox Test: Fragmentation of block-size:auto single-line column flex container with block-size:auto flex items</title>
7 <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
8 <link rel="author" title="Mozilla" href="http://www.mozilla.org/">
9 <link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">
10 <link rel="match" href="flexbox-single-column-1-ref.html">
11 <meta name="assert" content="This test verifies fragmentation of block-size:auto flex items in a block-size:auto single-line column flex container, with various combinations of margin/border/padding, alignments, and row-gap.">
13 <style>
14 .multicol {
15 block-size: 50px;
16 inline-size: 190px;
17 column-width: 40px;
18 column-fill: auto;
19 column-gap: 10px;
20 border: 5px solid orange;
21 margin-block-end: 5px; /* Just to separate each sub-testcase visually. */
23 .flexContainer {
24 display: flex;
25 flex-wrap: nowrap;
26 flex-direction: column;
27 background: gray;
28 /* border-width is 0 by default; some sub-testcases will increase it. */
29 border: 0 solid lightgray;
31 .border-padding {
32 border-block-width: 10px;
33 padding-block: 5px;
36 /* Note: flex items are in visual order as "CMYK": cyan, magenta, yellow, black. */
37 header {
38 background: cyan;
40 header > div {
41 block-size: 50px;
43 nav, article, footer {
44 inline-size: 30px;
46 nav {
47 background: magenta;
48 align-self: flex-start;
50 nav > div {
51 block-size: 25px;
53 article {
54 background: yellow;
55 align-self: center;
57 article > div {
58 block-size: 25px;
60 footer {
61 background: black;
62 align-self: flex-end;
64 footer > div {
65 block-size: 50px;
67 </style>
69 <body>
70 <!-- Basic one without any margin/border/padding. -->
71 <div class="multicol">
72 <div class="flexContainer">
73 <header><div></div></header><nav><div></div></nav>
74 <article><div></div></article><footer><div></div></footer>
75 </div>
76 </div>
78 <!-- Test a container with margin-block-start. -->
79 <div class="multicol">
80 <div class="flexContainer" style="margin-block-start: 25px">
81 <header><div></div></header><nav><div></div></nav>
82 <article><div></div></article><footer><div></div></footer>
83 </div>
84 </div>
86 <!-- Test a container not at the top of the column/page. -->
87 <div class="multicol">
88 <div style="block-size: 25px"></div>
89 <div class="flexContainer">
90 <header><div></div></header><nav><div></div></nav>
91 <article><div></div></article><footer><div></div></footer>
92 </div>
93 </div>
95 <!-- Test a container with border and padding. -->
96 <div class="multicol">
97 <div class="flexContainer border-padding">
98 <header><div></div></header><nav><div></div></nav>
99 <article><div></div></article><footer><div></div></footer>
100 </div>
101 </div>
103 <!-- Test a container with border, padding, and row-gap. -->
104 <div class="multicol">
105 <div class="flexContainer border-padding" style="row-gap: 5px">
106 <header><div></div></header><nav><div></div></nav>
107 <article><div></div></article><footer><div></div></footer>
108 </div>
109 </div>
110 </body>
111 </html>