tor-browser

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

contain-size-select-elem-001.html (1417B)


      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-001-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 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    <option>b</option>
     31    <option>c</option>
     32  </select>
     33  <br style="clear:both;">
     34 
     35  <select class="minWidth">
     36    <option>CSS Test: A size-contained select with specified min-width should size itself as if it had no contents.</option>
     37    <option>a</option>
     38    <option>b</option>
     39    <option>c</option>
     40  </select>
     41  <br>
     42 
     43  <select class="width">
     44    <option>CSS Test: A size-contained select with specified width should size itself as if it had no contents.</option>
     45    <option>a</option>
     46    <option>b</option>
     47    <option>c</option>
     48  </select>
     49 </body>
     50 </html>