tor-browser

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

grid-item-inline-contribution-004.html (1447B)


      1 <!DOCTYPE html>
      2 <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
      3 <link rel="author" title="Mozilla" href="https://www.mozilla.org/">
      4 <link rel="help" href="https://drafts.csswg.org/css-grid-2/#algo-grid-sizing">
      5 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/6356#issuecomment-862800005">
      6 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1957501">
      7 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
      8 <meta name="assert" content="Tests the min-content contribution is re-resolved during a 2nd pass.">
      9 
     10 <!--
     11 
     12 Quoting step 3 of css-grid-2 section 12.1. Grid Sizing Algorithm:
     13 
     14 "
     15 Then, if the min-content contribution of any grid item has changed based on
     16 the row sizes and alignment calculated in step 2, re-resolve the sizes of the
     17 grid columns with the new min-content and max-content contributions (once
     18 only).
     19 "
     20 
     21 In this testcase initially the row size is indefinite, then resolves to 100px.
     22 Using this information we re-resolve the columns, resulting in 50px for the
     23 first column.
     24 
     25 -->
     26 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     27 <div style="display: grid; width: 0; grid-template: auto / auto auto;">
     28  <div style="background: green; height: 100%;">
     29    <canvas width="5" height="10" style="height: 100%;">
     30  </div>
     31  <div style="background: green">
     32    <div style="width: 50px; height: 100px;"></div>
     33  </div>
     34 </div>