multicol-span-all-dynamic-remove-006.html (1189B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <meta charset="utf-8"> 4 <title>CSS Multi-column Layout Test: Remove the parent of a column-spanner</title> 5 <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> 6 <link rel="author" title="Mozilla" href="http://www.mozilla.org/"> 7 <link rel="help" href="https://drafts.csswg.org/css-multicol-1/#column-span"> 8 <link rel="match" href="multicol-span-all-dynamic-remove-001-ref.html"> 9 <meta name="assert" content="This test checks removing the parent of a column-spanner should be rendered correctly."> 10 11 <script> 12 function runTest() { 13 document.body.offsetHeight; 14 15 document.getElementById("block").remove(); 16 17 document.documentElement.removeAttribute("class"); 18 } 19 </script> 20 21 <style> 22 #column { 23 column-count: 3; 24 column-rule: 6px solid; 25 width: 400px; 26 outline: 1px solid black; 27 } 28 h3 { 29 column-span: all; 30 outline: 1px solid blue; 31 } 32 </style> 33 34 <body onload="runTest();"> 35 <article id="column"> 36 <div>block1</div> 37 <div id="block"> 38 <h3>inner spanner</h3> 39 <div>inner block</div> 40 </div> 41 <div>block2</div> 42 </article> 43 </body> 44 </html>