diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
commit | 36d22d82aa202bb199967e9512281e9a53db42c9 (patch) | |
tree | 105e8c98ddea1c1e4784a60a5a6410fa416be2de /testing/web-platform/tests/css/css-multicol/going-out-of-flow-after-spanner.html | |
parent | Initial commit. (diff) | |
download | firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip |
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-multicol/going-out-of-flow-after-spanner.html')
-rw-r--r-- | testing/web-platform/tests/css/css-multicol/going-out-of-flow-after-spanner.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-multicol/going-out-of-flow-after-spanner.html b/testing/web-platform/tests/css/css-multicol/going-out-of-flow-after-spanner.html new file mode 100644 index 0000000000..2fe0e42a75 --- /dev/null +++ b/testing/web-platform/tests/css/css-multicol/going-out-of-flow-after-spanner.html @@ -0,0 +1,24 @@ +<!DOCTYPE html> +<title>Taking the sole box after a spanner out of flow, then remove it</title> +<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org"> +<link rel="help" href="https://www.w3.org/TR/css-multicol-1/#the-multi-column-model"> +<meta name="assert" content="An absolutely positioned box is still contained by the multicol container if its containing block is inside the multicol container"> +<div id="multicol" style="columns:3;"> + <div style="position:relative;"> + <div style="column-span:all;"></div> + <div id="victim" style="width:100%; height:300px;"></div> + </div> +</div> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<script> +test(() => { + var multicol = document.getElementById("multicol"); + var victim = document.getElementById("victim"); + assert_equals(multicol.getBoundingClientRect().height, 100); + victim.style.position = "absolute"; + assert_equals(multicol.getBoundingClientRect().height, 100); + victim.style.display = "none"; + assert_equals(multicol.getBoundingClientRect().height, 0); +}, "Going out of flow and still fragmented"); +</script> |