mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-19 18:30:27 +00:00
19 lines
613 B
HTML
19 lines
613 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
const smallAspectRatios = [
|
|
".0000000000001 / .00000000000001",
|
|
"1/0.00000000000001",
|
|
"0.00000000000001/1",
|
|
];
|
|
for (const ratio of smallAspectRatios) {
|
|
const element = document.createElement("div");
|
|
element.style.width = "100px";
|
|
element.style.aspectRatio = ratio;
|
|
document.body.appendChild(element);
|
|
println(`element height: ${element.clientHeight}px`);
|
|
element.remove();
|
|
}
|
|
});
|
|
</script>
|