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-030.tentative.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<meta name="assert" content="A replaced element with a percentage max-block-size doesn't compress the min-content contribution on its block axis to zero.">
<p>Test passes if there is a filled green square.</p>
<div style="inline-size: min-content">
<canvas width="200" height="200"
style="writing-mode:vertical-rl; background: green; max-block-size: 50%"></canvas>
</div>