webkit-box-align-001.html (833B)
1 <!DOCTYPE html> 2 <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> 3 <link rel="author" title="Mozilla" href="https://www.mozilla.org/"> 4 <link rel="help" href="https://compat.spec.whatwg.org/#propdef--webkit-box-align"> 5 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1936370"> 6 <link rel="match" href="green-ref.html"> 7 <meta name="assert" content="This test checks that a legacy flex container with -webkit-box-align:start doesn't stretch the cross-axis of its items."> 8 9 <style> 10 .container { 11 display: -webkit-inline-box; 12 -webkit-box-align: start; /* Map to align-items: flex-start */ 13 height: 100px; 14 background: green; 15 } 16 .item { 17 padding: 15px; 18 border-inline: 25px solid green; 19 margin: 10px; 20 aspect-ratio: 1/1; 21 } 22 </style> 23 24 <div class="container"> 25 <div class="item"></div> 26 </div>