tor-browser

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

contain-size-select-elem-003.html (1306B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <meta charset="utf-8">
      5  <title>CSS Test: 'contain: size' on select objects should cause them to be sized as if they have no contents.</title>
      6  <link rel="author" title="Morgan Rae Reschenberg" href="mailto:mreschenberg@berkeley.edu">
      7  <link rel="help" href="https://drafts.csswg.org/css-contain/#containment-size">
      8  <link rel="match" href="contain-size-select-elem-003-ref.html">
      9  <style>
     10  select {
     11    contain: size;
     12    color: transparent;
     13  }
     14  .minWidth {
     15    min-width: 100px;
     16  }
     17  .width {
     18    width: 100px;
     19  }
     20  .floatLWidth {
     21    float: left;
     22    width: 100px;
     23  }
     24  </style>
     25 </head>
     26 <body>
     27  <select multiple class="floatLWidth">
     28    <option>CSS Test: A size-contained floated select with specified width and no specified height should size itself as if it had no contents.</option>
     29    <option>a</option>
     30  </select>
     31  <br style="clear:both;">
     32 
     33  <select multiple class="minWidth">
     34    <option>CSS Test: A size-contained select with specified min-width should size itself as if it had no contents.</option>
     35    <option>a</option>
     36  </select>
     37  <br>
     38 
     39  <select multiple class="width">
     40    <option>CSS Test: A size-contained select with specified width should size itself as if it had no contents.</option>
     41    <option>a</option>
     42  </select>
     43 </body>
     44 </html>