mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
58 lines
No EOL
1.7 KiB
HTML
58 lines
No EOL
1.7 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: Auto-height regions with vertical writing mode in auto-height flexbox</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/#flex-direction-property" rel="help" />
|
|
<link href="http://www.w3.org/TR/css-writing-modes-3/#propdef-writing-mode" rel="help" />
|
|
<meta content="ahem" name="flags" />
|
|
<meta 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." name="assert" />
|
|
<link href="reference/autoheight-regions-in-autoheight-flexbox-002-ref.xht" rel="match" />
|
|
<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> </p>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</body></html> |