mirror of
https://github.com/servo/servo.git
synced 2025-06-23 08:34:42 +01:00
58 lines
No EOL
2 KiB
HTML
58 lines
No EOL
2 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 Test: Flexbox align-items: stretch with writing-mode vertical-lr and vertical-rl</title>
|
|
<link href="mailto:mitsuteru.s@gmail.com" rel="author" title="Mitsuteru Sawa" />
|
|
<link href="mailto:jackalmage@gmail.com" rel="reviewer" title="Tab Atkins Jr." />
|
|
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-align-items" rel="help" />
|
|
<link href="http://www.w3.org/TR/css-writing-modes-3/#writing-mode" rel="help" />
|
|
<link href="reference/flexbox_align-items-stretch-writing-modes-ref.xht" rel="match" />
|
|
<meta content="vertical-writing-mode flex items should stretch" name="assert" />
|
|
<style>
|
|
.container {
|
|
display: flex;
|
|
width: 250px;
|
|
}
|
|
.vertical-rl {
|
|
writing-mode: vertical-rl;
|
|
}
|
|
.vertical-lr {
|
|
writing-mode: vertical-lr;
|
|
}
|
|
.item {
|
|
background-color: green;
|
|
}
|
|
.square {
|
|
height: 50px;
|
|
width: 50px;
|
|
}
|
|
.error {
|
|
position: absolute;
|
|
background-color: red;
|
|
height: 100px;
|
|
width: 250px;
|
|
z-index: -1;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>The test passes if you see a green rectangle and no red.</p>
|
|
<div class="test">
|
|
<div class="error"></div>
|
|
<div class="container">
|
|
<div class="horizontal item">
|
|
<div class="square"></div>
|
|
<div class="square"></div>
|
|
</div>
|
|
<div class="vertical-rl item">
|
|
<div class="square"></div>
|
|
<div class="square"></div>
|
|
</div>
|
|
<div class="vertical-lr item">
|
|
<div class="square"></div>
|
|
<div class="square"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</body></html> |