mirror of
https://github.com/servo/servo
synced 2026-04-28 10:27:40 +02:00
107 lines
2.5 KiB
HTML
107 lines
2.5 KiB
HTML
<!DOCTYPE html>
|
|
<html><head>
|
|
<title>CSS Regions: Auto-height regions inside a fixed sized flexbox with column wrap flow</title>
|
|
<link href="mailto:badea@adobe.com" rel="author" title="Catalin Badea">
|
|
<link href="http://www.w3.org/TR/css3-regions/#rfcb-flow-fragment-height-resolution" rel="help">
|
|
<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/#layout-algorithm" rel="help">
|
|
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-wrap" rel="help">
|
|
<meta content="ahem" name="flags">
|
|
<meta content="Test checks the layout of auto-height regions placed inside a flexbox with a fixed
|
|
size and column wrap flow. The flex container should have two columns with three regions each." name="assert">
|
|
<link href="reference/autoheight-regions-in-fixed-sized-flexbox-003-ref.htm" rel="match">
|
|
<style>
|
|
.content {
|
|
font-family: Ahem;
|
|
line-height: 1em;
|
|
font-size: 20px;
|
|
}
|
|
|
|
#c1 {
|
|
flow-into: f1;
|
|
color: green;
|
|
}
|
|
|
|
#c2 {
|
|
flow-into: f2;
|
|
color: blue;
|
|
}
|
|
|
|
.flex {
|
|
height: 120px;
|
|
width: 200px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.region1 {
|
|
flow-from: f1;
|
|
width: 100px;
|
|
margin-right: 20px;
|
|
}
|
|
|
|
.region2 {
|
|
flow-from: f2;
|
|
break-after: always;
|
|
width: 100px;
|
|
margin-right: 20px;
|
|
}
|
|
|
|
.break {
|
|
/* Current (Jul 2013) standard way of region breaking */
|
|
break-after: region;
|
|
/* Old, non-standard but implemented way of region breaking */
|
|
region-break-after: always;
|
|
}
|
|
|
|
.red {
|
|
background-color: red;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<ul>
|
|
<li>Test passes if you see two columns with a total of 6 alternating horizontal green and blue stripes.</li>
|
|
<li>You shouldn't see any red.</li>
|
|
</ul>
|
|
<div id="c1" class="content">
|
|
XXXXX<br>
|
|
XXXXX
|
|
<div class="break"></div>
|
|
XXXXX<br>
|
|
XXXXX
|
|
<div class="break"></div>
|
|
XXXXX<br>
|
|
XXXXX
|
|
</div>
|
|
|
|
<div id="c2" class="content">
|
|
XXXXX<br>
|
|
XXXXX
|
|
<div class="break"></div>
|
|
XXXXX<br>
|
|
XXXXX
|
|
<div class="break"></div>
|
|
XXXXX<br>
|
|
XXXXX
|
|
</div>
|
|
<div class="flex">
|
|
<div class="region1">
|
|
</div>
|
|
<div class="region2">
|
|
</div>
|
|
<div class="region1">
|
|
</div>
|
|
<div class="region2">
|
|
</div>
|
|
<div class="region1">
|
|
</div>
|
|
<div class="region2">
|
|
<p class="red"> </p>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</body></html> |