Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-grid/grid-items/grid-size-with-orthogonal-child-002.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>CSS Grid Layout Test: Grid container sizing with an orthogonal grid item</title>
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
<link rel="match" href="../../reference/ref-filled-green-100px-square-only.html">
<style>
.grid {
display: inline-grid;
grid-template-rows: 100px;
background-color: green;
}
.item {
writing-mode: vertical-lr;
}
.item > span {
display: inline-block;
inline-size: 100px;
block-size: 50px;
}
</style>
<p>Test passes if there is a filled green square.</p>
<div class="grid">
<div class="item">
<span></span><span></span>
</div>
</div>