mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-23 08:30:50 +00:00
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
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>
|