testing/web-platform/tests/css/css-values/calc-size/calc-size-flex-001.html
author dadaa <daisuke.akatsuka@birchill.co.jp>
Wed, 09 Jul 2025 04:53:58 +0000 (13 hours ago)
changeset 795836 a5500d271fe3a1fefb4d81d96fc4abd00d9eade7
parent 750343 d043a7623dcdadd7281ccd954fe275739b199114
permissions -rw-r--r--
Bug 1957280: Limit user's mouse amount for tree component r=places-reviewers,reusable-components-reviewers,masayuki,mstriemer Differential Revision: https://phabricator.services.mozilla.com/D251224
<!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; width: 0px; height: 100px;">
  <!-- The auto min-size is 80px, then through the calc-size() is 100px. -->
  <div style="min-width: calc-size(auto, size + 20px); background: green;">
    <div style="width: 80px;"></div>
  </div>
</div>