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/fractional-aspect-ratio.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script>
<body onload="checkLayout('div')">
<div style="width: 100px; aspect-ratio: 0.00025 / 0.0001;" data-expected-height=40></div>
<div style="width: 320px; aspect-ratio: 1.6;" data-expected-height=200></div>
</body>