tor-browser

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

position-absolute-semi-replaced-stretch-other.html (1245B)


      1 <!DOCTYPE html>
      2 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/6789">
      3 <link rel="match" href="position-absolute-semi-replaced-stretch-other-ref.html">
      4 <title>Semi-replaced elements should stretch with an auto main size, and explicit insets in that direction.</title>
      5 <style>
      6 .cb {
      7  position: relative;
      8  border: 3px solid black;
      9  height: 100px;
     10  width: 150px;
     11  display: inline-block;
     12  vertical-align: top;
     13  margin: 5px;
     14 }
     15 .wide {
     16  /* Some of the form controls are wider than others
     17     and need a wider CB in order to see if they're
     18     stretching or shrinking. */
     19  width: 350px;
     20 }
     21 .abs {
     22  margin: 0;
     23  position: absolute;
     24  box-sizing: border-box;
     25  top: 3px;
     26  right: 3px;
     27  bottom: 3px;
     28  left: 3px;
     29  outline: 2px solid lime;
     30  width: auto;
     31  height: auto;
     32 }
     33 </style>
     34 <div class="cb"><select class="abs"><option>select</option></select></div>
     35 <div class="cb"><output class="abs">output</output></div>
     36 <div class="cb"><label class="abs">label</output></div>
     37 <div class="cb"><fieldset class="abs">fieldset</fieldset></div>
     38 <div class="cb wide"><textarea class="abs">textarea</textarea></div>
     39 <div class="cb wide"><progress value="0.4" class="abs"></div>
     40 <div class="cb wide"><meter value="0.4" class="abs"></div>