Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-flexbox/flexbox_align-items-center-3.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<meta name="assert" content="This checks that an orthogonal flex-item with center alignment doesn't stretch.">
<p>Test passes if there is a filled green square.</p>
<style>
.container {
margin-left: -50px;
width: 200px;
display: flex;
flex-direction: column;
align-items: center;
}
.child {
writing-mode: vertical-rl;
height: 100px;
background: green;
}
</style>
<div class="container">
<div class="child">
<div style="width: 100px;"></div>
</div>
</div>