div-min-content-auto-margin-top.tentative.html (484B)
1 <!DOCTYPE HTML> 2 <title> Ensure top takes effect after element is centered </title> 3 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/3973"> 4 <link rel="match" href="div-auto-margin-top-ref.html"> 5 <style> 6 #outer { 7 inset: 0; 8 background-color: black; 9 margin: auto; 10 top: 10px; 11 position: absolute; 12 block-size: min-content; 13 inline-size: 100px; 14 border: 5px solid red; 15 } 16 </style> 17 <div id="outer"><div style="block-size: 200px;"></div></div>