gecko-dev/layout/reftests/flexbox/pagination/flexbox-multi-row-1-ref.html

109 строки
3.0 KiB
HTML

<!DOCTYPE html>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<html>
<meta charset="utf-8">
<title>CSS Flexbox Test Reference: Fragmentation of multi-line row flex container</title>
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
<link rel="author" title="Mozilla" href="http://www.mozilla.org/">
<style>
.multicol {
height: 50px;
width: 200px;
column-width: 60px;
column-fill: auto;
column-gap: 10px;
border: 5px solid orange;
margin-bottom: 5px; /* Just to separate each sub-testcase visually. */
}
.flexContainer {
background: gray;
/* border-width is 0 by default; some sub-testcases will increase it. */
border: 0 solid lightgray;
}
.border-padding {
border-width: 10px 0;
padding: 5px 0;
}
.line {
width: 60px;
height: 50px;
}
header, nav, article, footer {
width: 30px;
}
.with-gap header, .with-gap nav, .with-gap article, .with-gap footer {
width: 25px;
}
/* Note: flex items are in visual order as "CMYK": cyan, magenta, yellow, black. */
header {
background: cyan;
height: 50px;
float: left;
}
nav {
background: magenta;
height: 25px;
float: right;
}
article {
background: yellow;
height: 40px;
float: left;
margin-top: 5px;
}
footer {
background: black;
height: 50px;
float: right;
}
</style>
<body>
<!-- Basic one without any margin/border/padding. -->
<div class="multicol">
<div class="flexContainer">
<div class="line"><header></header><nav></nav></div>
<div class="line"><article></article><footer></footer></div>
</div>
</div>
<!-- Test a container with margin-top. -->
<div class="multicol">
<div class="flexContainer" style="margin-top: 25px">
<div class="line"><header></header><nav></nav></div>
<div class="line"><article></article><footer></footer></div>
</div>
</div>
<!-- Test a container not at the top of the column/page. -->
<div class="multicol">
<div style="height: 25px"></div>
<div class="flexContainer">
<div class="line"><header></header><nav></nav></div>
<div class="line"><article></article><footer></footer></div>
</div>
</div>
<!-- Test a container with border and padding. -->
<div class="multicol">
<div class="flexContainer border-padding">
<div class="line"><header></header><nav></nav></div>
<div class="line"><article></article><footer></footer></div>
</div>
</div>
<!-- Test a container with border, padding, and gap. -->
<div class="multicol">
<div class="flexContainer border-padding with-gap">
<div class="line"><header></header><nav></nav></div>
<div style="height: 20px"><!-- row-gap --></div>
<div class="line"><article></article><footer></footer></div>
</div>
</div>
</body>
</html>