multicol-span-all-restyle-003.html (1247B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <meta charset="utf-8"> 4 <title>CSS Multi-column Layout Test: Restyle column-span's multi-column container</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="help" href="https://github.com/w3c/csswg-drafts/issues/1072"> 9 <link rel="match" href="multicol-span-all-restyle-003-ref.html"> 10 <meta name="assert" content="This test checks change the style of the spanner's multi-column container should not affect the spanner."> 11 12 <script> 13 function runTest() { 14 document.body.offsetHeight; // flush layout 15 16 var column = document.getElementById("column"); 17 column.style.backgroundColor = "yellow"; 18 19 document.documentElement.removeAttribute("class"); 20 } 21 </script> 22 23 <style> 24 #column { 25 column-count: 1; 26 width: 400px; 27 outline: 1px solid black; 28 } 29 h3 { 30 column-span: all; 31 } 32 </style> 33 34 <body onload="runTest();"> 35 <article id="column"> 36 <div> 37 <div>block1</div> 38 <h3>spanner</h3> 39 <div>block2</div> 40 </div> 41 </article> 42 </body> 43 </html>