grid-item-inline-contribution-003.html (1179B)
1 <!DOCTYPE html> 2 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht"> 3 <link rel="help" href="https://drafts.csswg.org/css-grid-2/#algo-overview"> 4 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/6356#issuecomment-862800005"> 5 <meta name="assert" content="Tests the min-content contribution is re-resolved during a 2nd pass."> 6 <!-- 7 8 " 9 Then, if the min-content contribution of any grid item has changed based on 10 the row sizes and alignment calculated in step 2, re-resolve the sizes of the 11 grid columns with the new min-content and max-content contributions (once 12 only). 13 " 14 15 In this testcase initially the row size is indefinite, then resolves to 100px. 16 Using this information we re-resolve the columns, resulting in 100px for the 17 first column. 18 19 --> 20 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 21 <div style="display: grid; width: 0; grid-template: auto / auto auto;"> 22 <div style="background: green;"> <!-- Has stretch alignment which the child should resolve against. --> 23 <canvas width="10" height="10" style="height: 100%;"> 24 </div> 25 <div> 26 <div style="height: 100px;"></div> 27 </div> 28 </div>