tor-browser

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

inherit-height-from-fallback.html (862B)


      1 <!DOCTYPE html>
      2 <title>CSS Anchor Positioning Test: inherit height from fallback height</title>
      3 <link rel="help" href="https://drafts.csswg.org/css-anchor-position-1/#position-try-fallbacks">
      4 <link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
      5 <style>
      6  #container {
      7    position: relative;
      8  }
      9  #anchor {
     10    anchor-name: --a1;
     11    width: 0px;
     12    height: 100px;
     13  }
     14  #anchored {
     15    position-area: left center;
     16    position: absolute;
     17    position-anchor: --a1;
     18    position-try-fallbacks: --f1;
     19    width: 100px;
     20  }
     21  #child {
     22    height: inherit;
     23    background: green;
     24  }
     25  @position-try --f1 {
     26    position-area: right center;
     27    height: 100px;
     28  }
     29 </style>
     30 <p>Test passes if there is a filled green square.</p>
     31 <div id="container">
     32  <div id="anchor"></div>
     33  <div id="anchored">
     34    <div id="child"></div>
     35  </div>
     36 </div>