multicol-span-all-dynamic-remove-007.html (1215B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <meta charset="utf-8"> 4 <title>CSS Multi-column Layout Test: Remove the position:fixed spanner as the first child</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 a position:fixed 'column-span:all' element (which doesn't actually span columns) should be rendered correctly."> 10 11 <script> 12 function runTest() { 13 document.body.offsetHeight; 14 15 document.getElementById("spanner").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 position: fixed; 30 column-span: all; 31 outline: 1px solid blue; 32 } 33 </style> 34 35 <body onload="runTest();"> 36 <article id="column"> 37 <h3 id="spanner">spanner</h3> 38 <div>block1</div> 39 <div>block2</div> 40 </article> 41 </body> 42 </html>