testing/web-platform/tests/css/css-sizing/aspect-ratio/flex-aspect-ratio-015.html
author Lando <lando@lando.test>
Fri, 11 Jul 2025 09:11:47 +0000 (5 hours ago)
changeset 796052 0a0cf87651274d2f86228467e41dafd62a510749
parent 554421 9bc0ddfeb2e5d3a0fcc818797dbc077b04388644
permissions -rw-r--r--
Merge autoland to mozilla-central
<!DOCTYPE html>
<title>CSS aspect-ratio: Row flex container with the replaced-element item</title>
<link rel="author" title="Mozilla" href="https://www.mozilla.org/">
<link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio">
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#line-sizing" title="9.2.3.B">
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht" />
<meta name="assert" content="aspect-ratio should work well if the flex item is a replaced element.">

<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>

<div style="display: flex;">
  <img src="support/20x50-green.png" style="height: 100px; aspect-ratio: 1/1;">
</div>