Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-viewport/zoom/aspect-ratio-height-with-automatic-minimum-size.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<link rel="match" href="/css/reference/ref-filled-green-100px-square-only.html">
<style>
.zoomed-container {
width: 50px;
zoom: 2;
}
.aspect-ratio {
aspect-ratio: 1/1;
background-color: green;
}
</style>
<body>
<p>Test passes if there is a filled green square.</p>
<div class="zoomed-container">
<div class="aspect-ratio">
</div>
</body>
</html>