servo/tests/wpt/css-tests/css-regions-1_dev/xhtml1print/column-flexbox-break.xht

50 lines
No EOL
1.5 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<title>CSS Regions: fragmenting a flex container with column flow </title>
<link href="mailto:badea@adobe.com" rel="author" title="Catalin Badea" />
<link href="http://www.w3.org/TR/css3-regions/#the-flow-into-property" rel="help" />
<link href="http://www.w3.org/TR/css3-regions/#flow-from" rel="help" />
<link href="http://www.w3.org/TR/css-flexbox-1/#flex-containers" rel="help" />
<link href="http://www.w3.org/TR/css-flexbox-1/#flex-direction-property" rel="help" />
<meta content="ahem" name="flags" />
<meta content="Test checks that a flex container with column flow is fragmented between regions." name="assert" />
<link href="reference/column-flexbox-break-ref.xht" rel="match" />
<style>
.flex {
display: flex;
flex-direction: column;
flow-into: flow;
}
.region {
flow-from: flow;
height: 45px;
margin-bottom: 20px;
}
.item {
font-family: Ahem;
font-size: 20px;
line-height: 1em;
color: green;
}
.red {
background-color: red;
}
</style>
</head>
<body>
<ul>
<li>Test passes if you see two horizontal green stripes.</li>
<li>You shouldn't see any red.</li>
</ul>
<div class="flex">
<div class="item">XXXX<br />XXXX</div>
<div class="item">XXXX<br />XXXX</div>
</div>
<div class="region"></div>
<div class="region"><p class="red">&#xA0;</p></div>
</body></html>