Files
sousa-gecko/testing/web-platform/tests/css/css-multicol/multicol-span-all-dynamic-add-014.html
T
Ting-Yu Lin b6064b3ca2 Bug 2014314 - Use column-fill:auto mode for multicol-span-all-dynamic-add-014.html. r=layout-reviewers,dshin
The resulting column-balancing height after inserting elements is not the
purpose of this test. Use `column-fill: auto` to make the test more stable on
macOS.

Differential Revision: https://phabricator.services.mozilla.com/D281820
2026-02-04 21:47:26 +00:00

44 lines
1.1 KiB
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<meta charset="utf-8">
<title>CSS Multi-column Layout Test: Append a block with column-span descendants to multicol</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-014-ref.html">
<script>
function runTest() {
document.body.offsetHeight;
var block3 = document.createElement("div");
block3.innerHTML = "<div>block3</div><h3>spanner2</h3><div>block4</div>";
column.appendChild(block3);
document.documentElement.removeAttribute("class");
}
</script>
<style>
#column {
column-count: 3;
column-rule: 6px solid;
column-fill: auto;
width: 400px;
outline: 1px solid black;
}
h3 {
column-span: all;
outline: 1px solid blue;
}
</style>
<body onload="runTest();">
<article id="column">
<div>block1</div>
<h3>spanner</h3>
<div>block2</div>
</article>
</body>
</html>