mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-28 14:02:51 +00:00
Previously, a crash would occur in the if `CSSPixelFraction` was given a denominator value less than the resolution of `CSSPixels` (1/64). We now divide both parts of the ratio by the denominator in this case.
11 lines
380 B
HTML
11 lines
380 B
HTML
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
const element = document.createElement("div");
|
|
element.style.width = "100px";
|
|
element.style.aspectRatio = ".0000000000001 / .00000000000001";
|
|
document.body.appendChild(element);
|
|
println(`element height: ${element.clientHeight}px`);
|
|
element.remove();
|
|
});
|
|
</script>
|