tor-browser

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

order-abs-children-painting-order.html (1224B)


      1 <!DOCTYPE html>
      2 <title>CSS Test: flex order affects painting order of absolutely positioned boxes inside flex</title>
      3 <link rel="author" title="Dennis Schubert" href="mailto:dschubert@mozilla.com">
      4 <link rel="author" href="https://mozilla.org" title="Mozilla">
      5 <link rel="help" href="https://drafts.csswg.org/css-flexbox/#propdef-order">
      6 <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=606208">
      7 <link rel="match" href="../../reference/ref-filled-green-100px-square-only.html">
      8 <meta name="assert" content="This test check that absolutely positioned boxes inside flex items have their painting orders affected by 'order'.">
      9 <style>
     10  #test {
     11    display: flex;
     12    position: relative;
     13    height: 100px;
     14    width: 100px;
     15  }
     16 
     17  #order-1 {
     18    order: 1;
     19  }
     20 
     21  #order-2 {
     22    order: 2;
     23  }
     24 
     25  .inner {
     26    position: absolute;
     27    bottom: 0;
     28    left: 0;
     29    right: 0;
     30    top: 0;
     31  }
     32 
     33  #order-1 .inner {
     34    background-color: red;
     35  }
     36 
     37  #order-2 .inner {
     38    background-color: green;
     39  }
     40 </style>
     41 <p>Test passes if there is a filled green square.</p>
     42 <div id="test">
     43  <div id="order-2">
     44    <div class="inner"></div>
     45  </div>
     46  <div id="order-1">
     47    <div class="inner"></div>
     48  </div>
     49 </div>