box-decoration-break-clone-002.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 border-block: 15px solid green; 21 box-decoration-break: clone; 22 block-size: calc(70px + 30px); /* 1st column + 2nd column */ 23 } 24 25 .child { 26 block-size: calc(70px + 85px); /* 1st column + 2nd column */ 27 background: green; 28 } 29 </style> 30 31 <!-- The container's content-box block-size is 100px, occupying part of the 32 second column. The child overflows the container, and get painted over the 33 container's block-end border in the second column. --> 34 35 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 36 <div class="multicol"> 37 <div class="container"> 38 <div class="child"></div> 39 </div> 40 </div>