servo/tests/wpt/web-platform-tests/css/css-regions/flexbox/autoheight-regions-in-autoheight-flexbox-002.html

58 lines
1.6 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>CSS Regions: Auto-height regions with vertical writing mode in auto-height flexbox</title>
<link rel="author" title="Catalin Badea" href="mailto:badea@adobe.com">
<link rel="help" href="http://www.w3.org/TR/css3-regions/#rfcb-flow-fragment-height-resolution">
<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#layout-algorithm">
<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#flex-direction-property">
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#propdef-writing-mode">
<meta name="flags" content="ahem">
<meta name="assert" content="Test checks that auto-height regions having content with vertical writing mode are
sized correctly when placed inside a flex container. The flowed content should be displayed as a horizontal
green stripe.">
<link rel="match" href="reference/autoheight-regions-in-autoheight-flexbox-002-ref.html">
<style>
.content {
font-size: 20px;
line-height: 1em;
color: green;
font-family: Ahem;
flow-into: flow;
writing-mode: vertical-rl;
}
.flexbox {
display: flex;
flex-flow: row;
}
.region {
background-color: green;
flow-from: flow;
}
.region > p {
background-color: red;
}
</style>
</head>
<body>
<ul>
<li>Test passes if you see a horizontal green stripe.</li>
<li>You shouldn't see any red.</li>
</ul>
<div class="content">
XX<br>
XX<br>
XX<br>
XX<br>
XX
</div>
<div class="flexbox">
<div class="region">
<p>&nbsp;</p>
</div>
</div>
</body>
</html>