tor-browser

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

position-fixed-001.html (1110B)


      1 <!DOCTYPE html>
      2 <html>
      3 <title>CSS Flexbox: flex-direction: column in fixed-positioned flexboxes.</title>
      4 <link rel="help" href="https://drafts.csswg.org/css-flexbox/#flex-direction-property">
      5 <link rel="help" href="https://drafts.csswg.org/css-position/#position-property">
      6 <link rel="match" href="reference/position-fixed-001-ref.html">
      7 <link rel="help" href="https://crbug.com/604346"/>
      8 <meta name="assert" content="This test ensures that widths are always definite for inner flexboxes that are nested inside fixed-positioned flexboxes using 'flex-direction: column'."/>
      9 
     10 <style>
     11 .fixed-pos{
     12  position: fixed;
     13  background: red;
     14 }
     15 
     16 .inner {
     17  width: 100%;
     18  background: green;
     19 }
     20 
     21 .flexbox {
     22  display: flex;
     23 }
     24 
     25 .column {
     26  flex-direction: column;
     27 }
     28 </style>
     29 
     30 <body>
     31 
     32 <p>You should see no red.</p>
     33 
     34 <div class="fixed-pos" >
     35  <div class="flexbox column">
     36 
     37    <div class="flexbox">
     38      <div class="inner">
     39        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
     40      </div>
     41    </div>
     42 
     43    <div class="flexbox">
     44      <div class="inner">
     45        YYYY
     46      </div>
     47    </div>
     48 
     49  </div>
     50 </div>
     51 
     52 </body>
     53 </html>