justify-self-auto-margins-2.html (747B)
1 <!DOCTYPE html> 2 <link rel="help" href="https://drafts.csswg.org/css-align-3/#justify-abspos"> 3 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht"> 4 <meta name="assert" content="auto margins do not disable fit-content sizing when justify-self is specified"> 5 <style> 6 #reference-overlapped-red { 7 position: absolute; 8 background-color: red; 9 width: 100px; 10 height: 100px; 11 z-index: -1; 12 } 13 </style> 14 15 <p>Test passes if there is a filled green square and <strong>no red</strong>. 16 </p> 17 18 <div id=reference-overlapped-red></div> 19 20 <div style="width: 200px; margin-left: -50px;"> 21 <div style="height:100px; margin: auto; justify-self: right; background: green;"> 22 <div style="width: 100px;"></div> 23 </div> 24 </div>