box-decoration-break-clone-004.html (1193B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> 4 <link rel="author" title="Mozilla" href="https://www.mozilla.org/"> 5 <link rel="help" href="https://drafts.csswg.org/css-break/#break-decoration"> 6 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1564726"> 7 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 8 9 <style> 10 .multicol { 11 column-count: 2; 12 column-gap: 0; 13 column-fill: auto; 14 inline-size: 100px; 15 block-size: 100px; 16 background: red; 17 } 18 19 .container { 20 padding: 5px 0; 21 border-block: 10px solid green; 22 box-decoration-break: clone; 23 block-size: calc(70px + 10px); /* 1st column + 2nd column */ 24 background: green; 25 } 26 </style> 27 28 <!-- The container's content-box block-size is 80px, making its border-box 29 block-size in the second column be 40px. The remaining 60px block-size in 30 the second column should be filled completely by the later sibling green 31 block. --> 32 33 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 34 <div class="multicol"> 35 <div class="container"></div> 36 <div style="block-size: 60px; background: green"></div> 37 </div>