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