wpt / css / css-sizing / intrinsic-fixed-width-with-max-content-height.html

Status: PASS | Duration: 7ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-sizing/intrinsic-fixed-width-with-max-content-height.html

<!DOCTYPE html>
<html>
<head>
<link rel="author" title="Sammy Gill" href="sammy.gill@apple.com">
<link rel="help" href="https://drafts.csswg.org/css-sizing-3/#intrinsic-sizes">
<link rel="help" href="https://drafts.csswg.org/css2/#inline-replaced-height">
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<meta name="assert" content="max-content height of an image with specified width is computed via aspect ratio">
</head>
<body>
<p>Test passes if there is a filled green square.</p>
<img style="width: 100px; height: max-content;" src="../support/60x60-green.png">
</body>
</html>

/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>