grid-size-with-orthogonal-child-002.html (855B)
1 <!DOCTYPE html> 2 <title>CSS Grid Layout Test: Grid container sizing with an orthogonal grid item</title> 3 <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> 4 <link rel="author" title="Mozilla" href="https://www.mozilla.org/"> 5 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1453517"> 6 <link rel="match" href="../../reference/ref-filled-green-100px-square-only.html"> 7 <style> 8 .grid { 9 display: inline-grid; 10 grid-template-rows: 100px; 11 background-color: green; 12 } 13 14 .item { 15 writing-mode: vertical-lr; 16 } 17 18 .item > span { 19 display: inline-block; 20 inline-size: 100px; 21 block-size: 50px; 22 } 23 </style> 24 25 <!-- This testcase is adapted from Testcase #1 in Bug 1453571 comment 0. --> 26 27 <p>Test passes if there is a filled green square.</p> 28 <div class="grid"> 29 <div class="item"> 30 <span></span><span></span> 31 </div> 32 </div>