tor-browser

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

box-decoration-break-clone-001.html (1086B)


      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  background: green;
     24 }
     25 
     26 .child {
     27  block-size: calc(70px + 70px); /* 1st column + 2nd column */
     28  background: green;
     29 }
     30 </style>
     31 
     32 <!-- The container's block-size is auto, so the available column block-size
     33     reserved for the child is 70px in every 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>