multicol-rule-nested-balancing-004.html (1497B)
1 <!DOCTYPE html> 2 <html> 3 <meta charset="utf-8"> 4 <title>CSS Multi-column Layout Test: Test the column rules' block-size with nested balancing multicol container</title> 5 <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> 6 <link rel="author" title="Mozilla" href="https://www.mozilla.org/"> 7 <link rel="help" href="https://drafts.csswg.org/css-multicol-1/#cf"> 8 <link rel="help" href="https://drafts.csswg.org/css-multicol-1/#column-gaps-and-rules"> 9 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/2309"> 10 <link rel="match" href="multicol-rule-nested-balancing-004-ref.html"> 11 <meta name="assert" content="This test verifies that the column-rules are extended to the content block-end edges of their corresponding inner and outer multicol container."> 12 13 <style> 14 .outer { 15 column-count: 1; 16 column-rule: 6px solid black; 17 background-color: rgba(0, 0, 255, 0.3); 18 width: 200px; 19 height: 300px; 20 } 21 .inner { 22 column-count: 1; 23 column-rule: 3px solid gray; 24 background-color: rgba(255, 0, 255, 0.3); 25 height: 500px; 26 } 27 .inner-block { 28 background-color: rgba(0, 255, 0, 0.3); 29 height: 600px; 30 } 31 </style> 32 33 <!-- It is deliberate that the inner column's block-size is greater than 34 outer column's, and the inner-block's block-size is also greater than 35 inner column's. --> 36 <article class="outer"> 37 <article class="inner"> 38 <div class="inner-block"></div> 39 </article> 40 </article> 41 </html>