Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-flexbox/svg-no-natural-size-grandchild.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
<meta name="assert" content="The flex-item shouldn't have a zero max content size.">
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div style="display: flex; align-items: center; width: 100px; height: 100px; background: red;">
<div style="line-height: 0;">
<svg height="100%" width="100%" viewBox="0 0 1 1">
<rect height="100%" width="100%" fill="green"></rect>
</svg>
</div>
</div>