calc-size-flex-009.html (578B)
1 <!DOCTYPE html> 2 <link rel="help" href="https://drafts.csswg.org/css-values-5/#calc-size"> 3 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht"> 4 <p>Test passes if there is a filled green square and <strong>no red</strong>. 5 <div style="display: flex; width: 100px; height: 100px; background: red;"> 6 <!-- The auto min-size will be min(80px, 50px) == 50px. 7 Then passed through the calc-size, it'll be 100px. --> 8 <div style="min-width: calc-size(auto, size * 2); width: 80px; background: green;"> 9 <div style="width: 50px;"></div> 10 </div> 11 </div>