ladybird/Tests/LibWeb/Text/input/css/small-aspect-ratio.html
Tim Ledbetter 5478361ba0
Some checks are pending
CI / macOS, arm64, Sanitizer, Clang (push) Waiting to run
CI / Linux, x86_64, Fuzzers, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer, GNU (push) Waiting to run
CI / Linux, x86_64, Sanitizer, Clang (push) Waiting to run
Package the js repl as a binary artifact / Linux, arm64 (push) Waiting to run
Package the js repl as a binary artifact / macOS, arm64 (push) Waiting to run
Package the js repl as a binary artifact / Linux, x86_64 (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run
LibWeb: Avoid division by zero with small aspect ratios
2025-07-13 05:41:48 +02:00

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>