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/quirks-mode-002.html - WPT Dashboard Interop Dashboard
<!-- quirks mode -->
<title>Aspect ratio and quirks mode</title>
<meta name="flags" content="dom" />
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
onload = function() {
test(function() {
assert_equals(document.body.offsetHeight, document.body.offsetWidth);
}, "body height equals width");
};
</script>
<body style="aspect-ratio: 1/1;">