tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

box-decoration-break-clone-003.html (1194B)


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