grid-size-with-orthogonal-child-001.html (918B)
1 <!DOCTYPE html> 2 <title>CSS Grid Layout Test: Grid container sizing with an orthogonal grid item using percentage sizes</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=1977501"> 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-rl; 16 inline-size: 100%; 17 block-size: 50%; 18 } 19 20 .item > span { 21 display: inline-block; 22 inline-size: 40px; 23 block-size: 100px; 24 } 25 </style> 26 27 <!-- This testcase is adapted from Testcase #1 in Bug 1977501 comment 0. --> 28 29 <p>Test passes if there is a filled green square.</p> 30 <div class="grid"> 31 <div class="item"> 32 <span></span><span></span> 33 </div> 34 </div>