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/align-items-baseline-row-vert.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel="stylesheet" href="/fonts/ahem.css" />
<style>
#target {
writing-mode: vertical-rl;
display: flex;
align-items: baseline;
inline-size: min-content;
block-size: 200px;
border: solid 3px;
}
#target > div {
margin: 5px 7px 9px 11px;
}
#target > :nth-child(1) {
background: lime;
font: 30px/1 Ahem;
writing-mode: vertical-rl;
}
#target > :nth-child(2) {
background: hotpink;
font: 20px/1 Ahem;
writing-mode: vertical-rl;
}
#target > :nth-child(3) {
background: cyan;
font: 16px/1 Ahem;
width: 40px;
height: 40px;
writing-mode: horizontal-tb;
}
#target > :nth-child(4) {
background: lime;
font: 30px/1 Ahem;
writing-mode: vertical-lr;
}
#target > :nth-child(5) {
background: hotpink;
font: 20px/1 Ahem;
writing-mode: vertical-lr;
}
</style>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script>
<body onload="checkLayout('#target > div')">
<div id="target">
<div data-offset-x="139">line1<br>line2</div>
<div data-offset-x="154">line1<br>line2</div>
<div data-offset-x="164"></div>
<div data-offset-x="22">line1<br>line2</div>
<div data-offset-x="27">line1<br>line2</div>
</div>
</body>