testing/web-platform/tests/css/css-values/calc-size/calc-size-aspect-ratio-001.html
author Emilio Cobos Álvarez <emilio@crisal.io>
Thu, 10 Jul 2025 09:08:54 +0000 (2 hours ago)
changeset 795952 1d422913e1cb1658224a2d269f8e4c9e80032d29
parent 749900 ad2f3e1a6608d44d4e92ef1e09c788e6e8d7c9e7
permissions -rw-r--r--
Bug 1976623 - Create drag popups eagerly for now. r=tnikkel,layout-reviewers Trivially restores pre-regression behavior, for now. Differential Revision: https://phabricator.services.mozilla.com/D256769
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-values-5/#calc-size">
<link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio">
<link rel="match" href="../../reference/ref-filled-green-100px-square-only.html">
<p>Test passes if there is a filled green square.</p>
<!-- Without calc-size() "auto" would resolve to 50px, and passing through calc-size() will yield 100px. -->
<div style="aspect-ratio: 1/2; height: 100px; width: calc-size(auto, size + 50px); background: green;"></div>