tor-browser

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

fieldset-001.html (1371B)


      1 <!DOCTYPE html>
      2 <html><head>
      3 <title>CSS Test: fragmenting a fieldset in multicol layout</title>
      4 <link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.com">
      5 <link rel="help" href="https://drafts.csswg.org/css-break/#valdef-box-decoration-break-slice">
      6 <link rel="match" href="fieldset-001-ref.html">
      7 <style>
      8  * {
      9    color:black; background-color:white; font:16px/1 monospace; padding:0; margin:0;
     10  }
     11  body { width:600px; height:600px; }
     12 
     13  .cols { columns:3; background:grey; margin-bottom: 10px; height:80px; column-fill:auto; }
     14  .c2 { column-count:2; height:120px; }
     15  legend { background:black; width:100px; height:19px; }
     16  fieldset {
     17    background-color: lightgrey;
     18    border: solid;
     19    border-width: 6px 3px 10px 7px;
     20    margin: 3px 10px 7px 5px;
     21  }
     22  fieldset, legend {
     23    background-clip: content-box;
     24    padding: 10px 7px 20px 3px;
     25  }
     26  fieldset.sized {
     27    height: 108px;
     28  }
     29  c { display:block; background:blue; opacity:.5; height:108px; }
     30 </style>
     31 </head>
     32 <body>
     33  <div class="cols">
     34    <fieldset><legend></legend><c></c></fieldset>
     35  </div>
     36  <div class="cols c2">
     37    <fieldset><legend></legend><c></c></fieldset>
     38  </div>
     39  <div class="cols">
     40    <fieldset class="sized"><legend></legend><c></c></fieldset>
     41  </div>
     42  <div class="cols c2">
     43    <fieldset class="sized"><legend></legend><c></c></fieldset>
     44  </div>
     45 </body>
     46 </html>