wpt / css / css-values / calc-size / calc-size-flex-005.html

Status: FAIL | Duration: 12ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-values/calc-size/calc-size-flex-005.html

<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-values-5/#calc-size">
<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#min-size-auto">
<link rel="match" href="../../reference/ref-filled-green-100px-square-only.html">
<p>Test passes if there is a filled green square.</p>
<div style="display: flex; flex-direction: column; height: 0px; width: 100px;">
  <!-- The auto min-size is 60px (the specified-size suggestion), then through the calc-size() is 100px. -->
  <div style="min-height: calc-size(auto, size + 40px); height: 60px; background: green;">
    <div style="height: 80px;"></div>
  </div>
</div>

/css/reference/ref-filled-green-100px-square-only.html

<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
<p>Test passes if there is a filled green square.</p>
<div style="width:100px; height:100px; background:green;"></div>