tor-browser

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

contain-size-select-elem-002.html (1035B)


      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-002-ref.html">
      9  <style>
     10  select {
     11    contain: size;
     12    color: transparent;
     13  }
     14  .floatLBasic {
     15    float: left;
     16  }
     17  </style>
     18 </head>
     19 <body>
     20  <select>
     21    <option>CSS Test: A size-contained select with no specified size should size itself as if it had no contents.</option>
     22    <option>aaaaaa</option>
     23    <option>b</option>
     24    <option>c</option>
     25  </select>
     26  <br>
     27 
     28  <select class="floatLBasic">
     29    <option>CSS Test: A size-contained floated select with no specified size should size itself as if it had no contents.</option>
     30    <option>a</option>
     31    <option>b</option>
     32    <option>c</option>
     33  </select>
     34 </body>
     35 </html>