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/aspect-ratio/block-aspect-ratio-029-crash.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>CSS aspect ratio: An intrinsic max-width should not crash when used with aspect ratio</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio">
<div style="max-width: max-content; height: 100px; aspect-ratio: 1/1;"></div>