tor-browser

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

order-abs-children-painting-order-different-container.html (1263B)


      1 <!DOCTYPE html>
      2 <title>CSS Test: flex order affects painting order of absolutely positioned boxes inside flex</title>
      3 <link rel="author" title="Chris Harrelson" href="mailto:chrishtr@chromium.org">
      4 <link rel="help" href="https://drafts.csswg.org/css-flexbox/#propdef-order">
      5 <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1489495">
      6 <link rel="match" href="../../reference/ref-filled-green-100px-square-only.html">
      7 <meta name="assert" content="This test check that relative positioned boxes that are grandchildren of two flexboxes don't sort paint order relative to each other.">
      8 <style>
      9  #test {
     10    display: flex;
     11    height: 100px;
     12    width: 100px;
     13  }
     14 
     15  #test2 {
     16    display: flex;
     17    height: 100px;
     18    width: 100px;
     19  }
     20 
     21  #order-1 {
     22    order: 1;
     23  }
     24 
     25  #order-2 {
     26    order: 2;
     27  }
     28 
     29  .inner {
     30    position: relative;
     31    width: 100px;
     32    height: 100px;
     33  }
     34 
     35  #order-1 .inner {
     36    background-color: green;
     37  }
     38 
     39  #order-2 .inner {
     40    background-color: red;
     41  }
     42 </style>
     43 <p>Test passes if there is a filled green square.</p>
     44 <div id="test">
     45  <div id="order-2">
     46    <div class="inner"></div>
     47  </div>
     48 </div>
     49 <div id="test2" style="margin-top: -100px">
     50  <div id="order-1">
     51    <div class="inner"></div>
     52  </div>
     53 </div>