summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-multicol/multicol-span-all-dynamic-add-011.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-span-all-dynamic-add-011.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-span-all-dynamic-add-011.html')
-rw-r--r--testing/web-platform/tests/css/css-multicol/multicol-span-all-dynamic-add-011.html55
1 files changed, 55 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-multicol/multicol-span-all-dynamic-add-011.html b/testing/web-platform/tests/css/css-multicol/multicol-span-all-dynamic-add-011.html
new file mode 100644
index 0000000000..6b96a9afe8
--- /dev/null
+++ b/testing/web-platform/tests/css/css-multicol/multicol-span-all-dynamic-add-011.html
@@ -0,0 +1,55 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+ <meta charset="utf-8">
+ <title>CSS Multi-column Layout Test: Insert a block containing a spanner kid. The spanner kid should correctly span across all columns</title>
+ <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
+ <link rel="author" title="Mozilla" href="http://www.mozilla.org/">
+ <link rel="help" href="https://drafts.csswg.org/css-multicol-1/#column-span">
+ <link rel="match" href="multicol-span-all-dynamic-add-003-ref.html">
+ <meta name="assert" content="This test checks that an inserted block containing 'column-span' element should be rendered correctly.">
+
+ <script>
+ function runTest() {
+ document.body.offsetHeight;
+
+ // Create a subtree like the following, and insert it into column as the
+ // first child.
+ // <div>
+ // block1
+ // <h3>spanner</h3>
+ // </div>
+ var spanner = document.createElement("h3");
+ var spannerText = document.createTextNode("spanner");
+ spanner.appendChild(spannerText);
+
+ var block1 = document.createElement("div");
+ var block1Text = document.createTextNode("block1");
+ block1.appendChild(block1Text)
+ block1.appendChild(spanner);
+
+ var column = document.getElementById("column");
+ column.insertBefore(block1, column.children[0]);
+
+ document.documentElement.removeAttribute("class");
+ }
+ </script>
+
+ <style>
+ #column {
+ column-count: 3;
+ column-rule: 6px solid;
+ width: 400px;
+ outline: 1px solid black;
+ }
+ h3 {
+ column-span: all;
+ outline: 1px solid blue;
+ }
+ </style>
+
+ <body onload="runTest();">
+ <article id="column">
+ <div>block2</div>
+ </article>
+ </body>
+</html>