multicol-span-all-restyle-002.html (1333B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <meta charset="utf-8"> 4 <title>CSS Multi-column Layout Test: Restyle column-span's parent that is an inline</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-002-ref.html"> 10 <meta name="assert" content="This test checks change the style of the spanner's parent should not affect the spanner."> 11 12 <script> 13 function runTest() { 14 document.body.offsetHeight; // flush layout 15 16 var span = document.getElementById("span"); 17 span.offsetWidth; 18 span.style.left = "200px"; 19 20 document.documentElement.removeAttribute("class"); 21 } 22 </script> 23 24 <style> 25 html { 26 overflow: hidden; 27 } 28 #column { 29 column-count: 1; 30 } 31 #span { 32 position: relative; 33 left: 100px; 34 } 35 h3 { 36 column-span: all; 37 } 38 </style> 39 40 <body onload="runTest();"> 41 <article id="column"> 42 <span id="span"> 43 All text should be offset 200px, except the spanner 44 <h3>Spanner</h3> 45 <div>Some more text</div> 46 </span> 47 </article> 48 </body> 49 </html>