tor-browser

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

select-element-zero-height-002-ref.html (643B)


      1 <!DOCTYPE html>
      2 <title>Reference: Select element with background color in flexbox with zero height</title>
      3 <link rel="author" title="Mozilla" href="https://mozilla.org">
      4 <style>
      5  .container {
      6    height: 0px;
      7    border: 1px dotted black;
      8  }
      9  .with-background {
     10    width: 100%;
     11    background: lime;
     12  }
     13  select {
     14    /*
     15      WebKit applies intrinsic (default) margins to control elements in some circumstances,
     16      let's disable them to avoid mismatch errors caused by those margins.
     17    */
     18    margin: 0;
     19  }
     20 </style>
     21 <body>
     22  <div class="container">
     23    <select class="with-background"><option>Hi</option></select>
     24  </div>
     25 </body>