tor-browser

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

grid-auto-placement-implicit-tracks-001.html (7207B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Grid Layout Test: Grid items auto-placement implicit tracks</title>
      4 <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
      5 <link rel="help" href="https://drafts.csswg.org/css-grid-1/#auto-placement-algo">
      6 <meta name="assert" content="This test checks that auto-placement works properly even when implicit tracks have been created during the first steps of the placement algorithm.">
      7 <style>
      8 .grid {
      9    display: grid;
     10    position: relative;
     11    grid-auto-columns: 100px;
     12    grid-auto-rows: 50px;
     13    margin: 10px;
     14 }
     15 .gridAutoFlowColumn { grid-auto-flow: column; }
     16 .gridAutoFlowColumnDense { grid-auto-flow: column dense; }
     17 .gridAutoFlowRowDense { grid-auto-flow: row dense; }
     18 .grid > div { border: solid; }
     19 </style>
     20 
     21 <script src="/resources/testharness.js"></script>
     22 <script src="/resources/testharnessreport.js"></script>
     23 <script src="/resources/check-layout-th.js"></script>
     24 
     25 <body onload="checkLayout('.grid')">
     26 <div id="log"></div>
     27 
     28 <div class="grid">
     29  <div data-offset-x="0" data-offset-y="0" data-expected-width="100" data-expected-height="50">i1</div>
     30  <div style="grid-column: span 2; grid-row: span 2;"
     31      data-offset-x="0" data-offset-y="50" data-expected-width="200" data-expected-height="100">i2</div>
     32  <div data-offset-x="0" data-offset-y="150" data-expected-width="100" data-expected-height="50">i3</div>
     33  <div data-offset-x="100" data-offset-y="150" data-expected-width="100" data-expected-height="50">i4</div>
     34 </div>
     35 
     36 <div class="grid">
     37  <div data-offset-x="0" data-offset-y="0" data-expected-width="100" data-expected-height="50">i1</div>
     38  <div style="grid-column: 1; grid-row: span 2;"
     39      data-offset-x="0" data-offset-y="50" data-expected-width="100" data-expected-height="100">i2</div>
     40  <div data-offset-x="0" data-offset-y="150" data-expected-width="100" data-expected-height="50">i3</div>
     41  <div data-offset-x="0" data-offset-y="200" data-expected-width="100" data-expected-height="50">i4</div>
     42 </div>
     43 
     44 <div class="grid">
     45  <div data-offset-x="0" data-offset-y="50" data-expected-width="100" data-expected-height="50">i1</div>
     46  <div style="grid-column: span 2; grid-row: 1;"
     47      data-offset-x="0" data-offset-y="0" data-expected-width="200" data-expected-height="50">i2</div>
     48  <div data-offset-x="100" data-offset-y="50" data-expected-width="100" data-expected-height="50">i3</div>
     49  <div data-offset-x="0" data-offset-y="100" data-expected-width="100" data-expected-height="50">i4</div>
     50 </div>
     51 
     52 <div class="grid gridAutoFlowRowDense">
     53  <div data-offset-x="0" data-offset-y="0" data-expected-width="100" data-expected-height="50">i1</div>
     54  <div style="grid-column: span 2; grid-row: span 2;"
     55      data-offset-x="0" data-offset-y="50" data-expected-width="200" data-expected-height="100">i2</div>
     56  <div data-offset-x="100" data-offset-y="0" data-expected-width="100" data-expected-height="50">i3</div>
     57  <div data-offset-x="0" data-offset-y="150" data-expected-width="100" data-expected-height="50">i4</div>
     58 </div>
     59 
     60 <div class="grid gridAutoFlowRowDense">
     61  <div data-offset-x="0" data-offset-y="0" data-expected-width="100" data-expected-height="50">i1</div>
     62  <div style="grid-column: 1; grid-row: span 2;"
     63      data-offset-x="0" data-offset-y="50" data-expected-width="100" data-expected-height="100">i2</div>
     64  <div data-offset-x="0" data-offset-y="150" data-expected-width="100" data-expected-height="50">i3</div>
     65  <div data-offset-x="0" data-offset-y="200" data-expected-width="100" data-expected-height="50">i4</div>
     66 </div>
     67 
     68 <div class="grid gridAutoFlowRowDense">
     69  <div data-offset-x="0" data-offset-y="50" data-expected-width="100" data-expected-height="50">i1</div>
     70  <div style="grid-column: span 2; grid-row: 1;"
     71      data-offset-x="0" data-offset-y="0" data-expected-width="200" data-expected-height="50">i2</div>
     72  <div data-offset-x="100" data-offset-y="50" data-expected-width="100" data-expected-height="50">i3</div>
     73  <div data-offset-x="0" data-offset-y="100" data-expected-width="100" data-expected-height="50">i4</div>
     74 </div>
     75 
     76 <div class="grid gridAutoFlowColumn">
     77  <div data-offset-x="0" data-offset-y="0" data-expected-width="100" data-expected-height="50">i1</div>
     78  <div style="grid-column: span 2; grid-row: span 2;"
     79      data-offset-x="100" data-offset-y="0" data-expected-width="200" data-expected-height="100">i2</div>
     80  <div data-offset-x="300" data-offset-y="0" data-expected-width="100" data-expected-height="50">i3</div>
     81  <div data-offset-x="300" data-offset-y="50" data-expected-width="100" data-expected-height="50">i4</div>
     82 </div>
     83 
     84 <div class="grid gridAutoFlowColumn">
     85  <div data-offset-x="100" data-offset-y="0" data-expected-width="100" data-expected-height="50">i1</div>
     86  <div style="grid-column: 1; grid-row: span 2;"
     87      data-offset-x="0" data-offset-y="0" data-expected-width="100" data-expected-height="100">i2</div>
     88  <div data-offset-x="100" data-offset-y="50" data-expected-width="100" data-expected-height="50">i3</div>
     89  <div data-offset-x="200" data-offset-y="0" data-expected-width="100" data-expected-height="50">i4</div>
     90 </div>
     91 
     92 <div class="grid gridAutoFlowColumn">
     93  <div data-offset-x="0" data-offset-y="0" data-expected-width="100" data-expected-height="50">i1</div>
     94  <div style="grid-column: span 2; grid-row: 1;"
     95      data-offset-x="100" data-offset-y="0" data-expected-width="200" data-expected-height="50">i2</div>
     96  <div data-offset-x="300" data-offset-y="0" data-expected-width="100" data-expected-height="50">i3</div>
     97  <div data-offset-x="400" data-offset-y="0" data-expected-width="100" data-expected-height="50">i4</div>
     98 </div>
     99 
    100 <div class="grid gridAutoFlowColumnDense">
    101  <div data-offset-x="0" data-offset-y="0" data-expected-width="100" data-expected-height="50">i1</div>
    102  <div style="grid-column: span 2; grid-row: span 2;"
    103      data-offset-x="100" data-offset-y="0" data-expected-width="200" data-expected-height="100">i2</div>
    104  <div data-offset-x="0" data-offset-y="50" data-expected-width="100" data-expected-height="50">i3</div>
    105  <div data-offset-x="300" data-offset-y="0" data-expected-width="100" data-expected-height="50">i4</div>
    106 </div>
    107 
    108 <div class="grid gridAutoFlowColumnDense">
    109  <div data-offset-x="100" data-offset-y="0" data-expected-width="100" data-expected-height="50">i1</div>
    110  <div style="grid-column: 1; grid-row: span 2;"
    111      data-offset-x="0" data-offset-y="0" data-expected-width="100" data-expected-height="100">i2</div>
    112  <div data-offset-x="100" data-offset-y="50" data-expected-width="100" data-expected-height="50">i3</div>
    113  <div data-offset-x="200" data-offset-y="0" data-expected-width="100" data-expected-height="50">i4</div>
    114 </div>
    115 
    116 <div class="grid gridAutoFlowColumnDense">
    117  <div data-offset-x="0" data-offset-y="0" data-expected-width="100" data-expected-height="50">i1</div>
    118  <div style="grid-column: span 2; grid-row: 1;"
    119      data-offset-x="100" data-offset-y="0" data-expected-width="200" data-expected-height="50">i2</div>
    120  <div data-offset-x="300" data-offset-y="0" data-expected-width="100" data-expected-height="50">i3</div>
    121  <div data-offset-x="400" data-offset-y="0" data-expected-width="100" data-expected-height="50">i4</div>
    122 </div>
    123 
    124 </body>