@@ -1400,11 +1400,10 @@ Explicit Track Sizing: the 'grid-template-rows' and 'grid-template-columns' prop
14001400 If the size of the <a>grid container</a>
14011401 depends on the size of its tracks,
14021402 then the <<percentage>>
1403- must be treated as <a value for=width>auto</a> .
1404- The UA <em> may</em> adjust the intrinsic size contributions of the track
1405- to the size of the <a>grid container</a>
1406- and increase the final size of the track
1407- by the minimum amount that would result in honoring the percentage.
1403+ must be treated as <a value for=width>auto</a> ,
1404+ for the purpose of calculating the intrinsic sizes of the <a>grid container</a>
1405+ and then resolve against that resulting <a>grid container</a> size
1406+ for the purpose of laying out the <a>grid</a> and its items.
14081407
14091408 <dt> <dfn><<flex>></dfn>
14101409 <dd>
@@ -4246,6 +4245,43 @@ Major Changes</h4>
42464245 (<a href="https://github.com/w3c/csswg-drafts/issues/523">Issue #523</a> )
42474246 See <a href="#grid-item-sizing"></a>
42484247 (vs. <a href="https://www.w3.org/TR/2016/CR-css-grid-1-20160929/#grid-item-sizing">original</a> ).
4248+
4249+ <li id="change-2016-auto-percent-track">
4250+ Changed the behavior of <<pecentage>> tracks
4251+ inside a <a>grid container</a> whose size depends on the size of those tracks
4252+ to match implementations by
4253+ contributing their dimensions sized as ''grid-template-columns/auto''
4254+ and subsequently resolve the percentage against
4255+ the resulting <a>grid container</a> size
4256+ rather than being treated exactly as an ''grid-template-columns/auto'' track
4257+ or having their size and that of the <a>grid container</a>
4258+ increased from an ''grid-template-columns/auto'' size
4259+ in order to honor the percentage without overflow.
4260+ This will frequently result in tracks overflowing
4261+ the <a>grid container</a>
4262+ and in the contents of tracks overflowing the tracks
4263+ when <<percentage>> sizes are used
4264+ in <a>fit-content</a> -sized <a>grid containers</a>
4265+ such as ''width/auto'' -sized inline or floated <a>grid containers</a> .
4266+ (To avoid this problem, use <<flex>> units instead,
4267+ which are intended to maintain their ratios and not overflow
4268+ when the grid is intrinsically-sized.)
4269+ <blockquote>
4270+ <p>
4271+ If the size of the <a>grid container</a>
4272+ depends on the size of its tracks,
4273+ then the <<percentage>>
4274+ must be treated as <a value for=width>auto</a>
4275+ <ins> for the purpose of calculating the intrinsic sizes of the <a>grid container</a>
4276+ and then resolve against that size for the purpose of laying out the grid and its items</ins> .
4277+ <del>
4278+ The UA <em> may</em> adjust the intrinsic size contributions of the track
4279+ to the size of the <a>grid container</a>
4280+ and increase the final size of the track
4281+ by the minimum amount that would result in honoring the percentage.
4282+ </del>
4283+ </p>
4284+ </blockquote>
42494285 </ul>
42504286
42514287<h4 id="fixes-2016">
0 commit comments