summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-multicol/multicol-nested-006.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/tests/css/css-multicol/multicol-nested-006.html
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-multicol/multicol-nested-006.html')
-rw-r--r--testing/web-platform/tests/css/css-multicol/multicol-nested-006.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-multicol/multicol-nested-006.html b/testing/web-platform/tests/css/css-multicol/multicol-nested-006.html
new file mode 100644
index 0000000000..c20ad03a34
--- /dev/null
+++ b/testing/web-platform/tests/css/css-multicol/multicol-nested-006.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
+<link rel="help" href="https://www.w3.org/TR/css-multicol-1/#filling-columns">
+<link rel="help" href="https://www.w3.org/TR/css-break-3/#widows-orphans">
+<meta name="assert" content="Make sure that orphans and widows handling inside an inner balanced multicol container doesn't get messed up by the constraining height of an outer multicol container">
+<p>There should be three columns below. The text in each column should match the
+ column number that the text actually ends up in.</p>
+<div style="columns:2; height:250px; line-height:50px; column-fill:auto;">
+ <div style="columns:3; column-rule:solid;" id="inner">
+ 1<br>1<br>2<br>2<br>3<br>3<br>
+ </div>
+</div>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script>
+ test(()=> {
+ assert_equals(inner.offsetHeight, 100);
+ }, "Check that orphans and widows don't make a multicol container taller than necessary");
+</script>