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
44 lines
1.1 KiB
HTML
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>
|