Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-sizing/intrinsic-percent-replaced-036.html - WPT Dashboard Interop Dashboard
<!-- quirks mode -->
<meta charset="utf-8">
<link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com">
<meta name="assert" content="Checks that a replaced element, with an aspect ratio, converts a quirky percent height into an intrinsic width.">
<link rel="match" href="../reference/ref-filled-green-200px-square.html">
<p style="margin: 1em 0">Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div style="width: 200px; height: 200px; background: red">
<div style="width: max-content; background: green">
<canvas width="50" height="50" style="height: 100%"></canvas>
</div>
</div>