mirror of
https://github.com/servo/servo.git
synced 2025-07-07 23:43:39 +01:00
93 lines
No EOL
2.4 KiB
HTML
93 lines
No EOL
2.4 KiB
HTML
<!DOCTYPE html>
|
|
<html><head>
|
|
<title>CSS Regions: Auto-height regions in auto-height flex container</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/css-flexbox-1/#layout-algorithm" rel="help">
|
|
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-wrap" rel="help">
|
|
<link href="http://www.w3.org/TR/css-flexbox-1/#flex-direction-property" rel="help">
|
|
<link href="http://www.w3.org/TR/css-flexbox-1/#flex-flow-property" rel="help">
|
|
<meta content="ahem" name="flags">
|
|
<meta content="Test that auto-height regions placed in a flex container with auto-height and
|
|
row wrap reverse flow are sized correctly. The content from the second flow should flow through the region on
|
|
the second row and into the region from the first row, making the left blue rectangle taller than the green
|
|
rectangle on the right." name="assert">
|
|
<link href="reference/autoheight-regions-in-autoheight-flexbox-001-ref.htm" rel="match">
|
|
<style>
|
|
.content {
|
|
font-family: Ahem;
|
|
font-size: 20px;
|
|
line-height: 1em;
|
|
}
|
|
|
|
#c1 {
|
|
color: green;
|
|
flow-into: flow1;
|
|
}
|
|
|
|
#c2 {
|
|
color: blue;
|
|
flow-into: flow2;
|
|
}
|
|
|
|
.flex {
|
|
display: flex;
|
|
max-width: 300px;
|
|
flex-flow: row-reverse wrap-reverse;
|
|
}
|
|
|
|
.fromFlow1 {
|
|
flow-from: flow1;
|
|
}
|
|
|
|
.fromFlow2 {
|
|
flow-from: flow2;
|
|
}
|
|
|
|
#r1 {
|
|
max-width: 100px;
|
|
max-height: 40px;
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
#r2 {
|
|
width: 200px;
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
#r3 {
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
.blue {
|
|
color: blue;
|
|
}
|
|
|
|
.red {
|
|
background-color: red;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<ul>
|
|
<li>Test passes if you see a blue rectangle and a green rectangle, from left to right in this order.</li>
|
|
<li>The blue rectangle one the left should be taller than the green rectangle on the right.</li>
|
|
<li>You shouldn't see any red.</li>
|
|
</ul>
|
|
<div class="content" id="c1">
|
|
XXXXX<br>
|
|
XXXXX<br>
|
|
<span class="blue">XXXXX</span>
|
|
</div>
|
|
<div class="content" id="c2">
|
|
XXXXX<br>
|
|
XXXXX
|
|
</div>
|
|
<div class="flex">
|
|
<div class="fromFlow1" id="r1"><p class="red"> </p></div>
|
|
<div class="fromFlow2" id="r2"><p class="red"> </p></div>
|
|
<div class="fromFlow1" id="r3"><p class="red"> </p></div>
|
|
</div>
|
|
|
|
|
|
</body></html> |