tor-browser

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

grid-inline-order-property-painting-003.html (1216B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Grid Layout Test: 'order' property affects grid items painting order within an inline grid</title>
      4 <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
      5 <link rel="help" href="http://www.w3.org/TR/css-grid-1/#order-property" title="4.2 Reordered Grid Items: the order property">
      6 <link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#order-property" title="5.4. Display Order: the order property">
      7 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
      8 <meta name="flags" content="ahem">
      9 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     10 <style>
     11  #inline-grid {
     12    display: inline-grid;
     13    font: 100px/1 Ahem;
     14  }
     15 
     16  #test-item-overlapping-green {
     17    color: green;
     18    order: 10;
     19  }
     20 
     21  #reference-item-overlapped-red {
     22    color: red;
     23    order: 5;
     24  }
     25 
     26  .first-row-first-column {
     27    grid-area: 1 / 1;
     28  }
     29 </style>
     30 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     31 
     32 <div id="inline-grid">
     33  <div id="test-item-overlapping-green" class="first-row-first-column">G</div>
     34  <div id="reference-item-overlapped-red" class="first-row-first-column">R</div>
     35 </div>