@@ -3881,7 +3881,7 @@ Resolve Intrinsic Track Sizes</h3>
3881
3881
Find the |item-incurred increase| for each spanned track with an affected size
3882
3882
by distributing the space equally among them,
3883
3883
freezing tracks as their size reaches their <a>growth limit</a>
3884
- (and continuing to grow the unfrozen tracks as needed.
3884
+ (and continuing to grow the unfrozen tracks as needed) .
3885
3885
3886
3886
If a track was marked as <a>infinitely growable</a> for this phase,
3887
3887
treat its <a>growth limit</a> as infinite for this calculation
@@ -3920,7 +3920,8 @@ Resolve Intrinsic Track Sizes</h3>
3920
3920
</ol>
3921
3921
<li>
3922
3922
<strong> Update the tracks' affected sizes</strong>
3923
- by adding in the |planned increase|.
3923
+ by adding in the |planned increase|
3924
+ so that the next round of space distribution will account for the increase.
3924
3925
(If the affected size is an infinite <a>growth limit</a> ,
3925
3926
set it to the track's <a>base size</a> plus the |planned increase|.)
3926
3927
</ol>
@@ -4199,26 +4200,52 @@ Acknowledgements</h2>
4199
4200
<h2 class="no-num" id="changes">
4200
4201
Changes</h2>
4201
4202
4202
- Changes since the <a href="https://www.w3.org/TR/2016/CR-css-grid-1-20160929/">29 September 2016 Candidate Recommendation</a> are:
4203
+ This section documents the changes since previous publications.
4204
+
4205
+ <h3 id="changes-2016">
4206
+ Changes since the <a href="https://www.w3.org/TR/2016/CR-css-grid-1-20160929/">29 September 2016 CR</a></h3>
4207
+
4208
+ A <a href="https://drafts.csswg.org/css-grid-1/issues-cr-2016">Disposition of Comments</a> is also available.
4209
+
4210
+ There remains an open issue on
4211
+ <a href="https://drafts.csswg.org/css-grid-1/issues-cr-2016#issue-15">percentages inside shrink-wrapped grid containers</a>
4212
+ at the time of publication.
4213
+
4214
+ <h4 id="major-2016">
4215
+ Major Changes</h4>
4203
4216
4204
4217
<ul>
4205
- <li>
4218
+ <li id="change-2016-defer-subgrid" >
4206
4219
Deferred ''subgrid'' feature to Level 2
4207
4220
due to lack of implementation and desire for further discussion.
4208
4221
(<a href="https://github.com/w3c/csswg-drafts/issues/958">Issue 958</a> )
4209
4222
4210
- <li>
4223
+ <li id="change-2016-unshorthand-gaps" >
4211
4224
Removed 'grid-row-gap' and 'grid-column-gap'
4212
4225
from the list of properties reset by the 'grid' shorthand.
4213
4226
(<a href="https://github.com/w3c/csswg-drafts/issues/1036">Issue 1036</a> )
4214
4227
4215
- <li>
4228
+ <li id="change-2016-grid-gap" >
4216
4229
Removed 'grid-row-gap' , 'grid-column-gap' , and 'grid-gap' properties,
4217
4230
replacing with 'row-gap' , 'column-gap' , and 'gap'
4218
4231
which are now defined in <a href="http://www.w3.org/TR/css-align-3/">CSS Box Alignment</a> .
4219
4232
(<a href="https://github.com/w3c/csswg-drafts/issues/1696">Issue 1696</a> )
4220
4233
4221
- <li>
4234
+ <li id="change-2016-auto-ratio">
4235
+ Changed <a href="#grid-item-sizing">automatic sizing</a>
4236
+ of grid items (such as images) with an intrinsic size or ratio
4237
+ so that they maintain their intrinsic size/ratio
4238
+ whenever the alignment properties are ''align-self/normal'' (the default case).
4239
+ (<a href="https://github.com/w3c/csswg-drafts/issues/523">Issue #523</a> )
4240
+ See <a href="#grid-item-sizing"></a>
4241
+ (vs. <a href="https://www.w3.org/TR/2016/CR-css-grid-1-20160929/#grid-item-sizing">original</a> ).
4242
+ </ul>
4243
+
4244
+ <h4 id="fixes-2016">
4245
+ Significant Adjustments and Fixes</h4>
4246
+
4247
+ <ul>
4248
+ <li id="change-2016-flex-clamping-indefinite">
4222
4249
Applied flex factor clamping to 1 also to indefinite case
4223
4250
(<a href="https://drafts.csswg.org/css-grid-1/issues-cr-2016#issue-26">Issue 26</a> ,
4224
4251
see <a href="https://lists.w3.org/Archives/Public/www-style/2015Sep/0032.html">discussion</a> ):
@@ -4231,7 +4258,7 @@ Changes</h2>
4231
4258
the track's <a>base size</a> .</ins></p>
4232
4259
</blockquote>
4233
4260
4234
- <li>
4261
+ <li id="change-2016-stretch-algo" >
4235
4262
Better integrated ''justify-content/stretch'' sizing of grid tracks
4236
4263
into the track sizing algorithm.
4237
4264
(<a href="https://github.com/w3c/csswg-drafts/issues/1150">Issue 1150</a> )
@@ -4269,16 +4296,7 @@ Changes</h2>
4269
4296
</ins>
4270
4297
</blockquote>
4271
4298
4272
- <li>
4273
- Changed <a href="#grid-item-sizing">automatic sizing</a>
4274
- of grid items (such as images) with an intrinsic size or ratio
4275
- so that they maintain their intrinsic size/ratio
4276
- whenever the alignment properties are ''align-self/normal'' (the default case).
4277
- (<a href="https://github.com/w3c/csswg-drafts/issues/523">Issue #523</a> )
4278
- See <a href="#grid-item-sizing"></a>
4279
- (vs. <a href="https://www.w3.org/TR/2016/CR-css-grid-1-20160929/#grid-item-sizing">original</a> ).
4280
-
4281
- <li>
4299
+ <li id="change-2016-auto-min-fixed-tracks">
4282
4300
Adjusted <a href="#min-size-auto">automatic minimum size</a> of grid items
4283
4301
to only trigger when spanning ''grid-template-columns/auto'' tracks
4284
4302
(<a href="https://drafts.csswg.org/css-grid-1/issues-cr-2016#issue-12">Issue 12</a> )
@@ -4302,7 +4320,26 @@ Changes</h2>
4302
4320
<ins> (so as to prevent the <a>automatic minimum size</a> from forcing overflow of its fixed-size grid area)</ins> .</p>
4303
4321
</blockquote>
4304
4322
4305
- <li>
4323
+ <li id="change-2016-auto-min-fallback">
4324
+ Adjusted <a href="#min-size-auto">automatic minimum size</a> of grid items
4325
+ to use the transferred size in preference to the content size,
4326
+ rather than taking the smaller of the two.
4327
+ (<a href="https://github.com/w3c/csswg-drafts/issues/1149">Issue #1149</a> )
4328
+ <blockquote>
4329
+ <p> … <del> The effect is analogous to the <a>automatic minimum size</a>
4330
+ imposed on <a>flex items</a> .)
4331
+ [[!CSS-FLEXBOX-1]] </del></p>
4332
+ <p><ins> The <a>automatic minimum size</a> for a <a>grid item</a> in a given dimension is
4333
+ its <a spec="css-flexbox">specified size</a> if it exists,
4334
+ otherwise its <a spec="css-flexbox">transferred size</a> if that exists,
4335
+ else its <a spec="css-flexbox">content size</a> ,
4336
+ each as defined in [[!CSS-FLEXBOX-1]] .</ins>
4337
+ However, if the <a>grid item</a> spans only <a>grid tracks</a>
4338
+ that have a <a lt="fixed sizing function">fixed</a> <a>max track sizing function</a>
4339
+ …
4340
+ </blockquote>
4341
+
4342
+ <li id="change-2016-auto-max-constraint">
4306
4343
Fixed error in algorithm’s handling of ''grid-template-columns/auto'' min track sizes
4307
4344
where it didn't correctly handle max-content constraints;
4308
4345
and also made some editorial improvements.
@@ -4337,7 +4374,52 @@ Changes</h2>
4337
4374
</ol>
4338
4375
</blockquote>
4339
4376
4340
- <li> Clarified definition of <a>min-size contribution</a> .
4377
+ <li id="change-2016-span-size-accumulation">
4378
+ Fixed error in <a>distribute extra space</a> algorithm,
4379
+ where the accumulation was folded in per item rather than per track set;
4380
+ and where it was not clear that distributed space per item
4381
+ should be max()ed with the planned increase rather than added to it.
4382
+ (<a href="https://github.com/w3c/csswg-drafts/issues/1729">Issue #1729</a> )
4383
+
4384
+ <blockquote>
4385
+ <ol>
4386
+ <li value=2>
4387
+ For each considered item,
4388
+ <ol>
4389
+ <li> …
4390
+ <li>
4391
+ <strong> Distribute space to base sizes up to growth limits:</strong>
4392
+ <del> Distribute the space equally to the planned increase of each spanned track with an affected size</del>
4393
+ <ins> Find the |item-incurred increase| for each spanned track with an affected size
4394
+ by distributing the space equally among them</ins> ,
4395
+ freezing tracks as their size reaches their <a>growth limit</a>
4396
+ (and continuing to grow the unfrozen tracks as needed).
4397
+ …
4398
+ <li>
4399
+ <strong> Distribute space beyond growth limits:</strong>
4400
+ If space remains after all tracks are frozen,
4401
+ unfreeze and continue to distribute space to
4402
+ <ins> the |item-incurred increase| of</ins> …
4403
+ <li>
4404
+ <ins> For each affected track,
4405
+ if the track’s |item-incurred increase| is larger than the track’s |planned increase|
4406
+ set the track’s |planned increase| to that value.</ins>
4407
+ </ol>
4408
+ <li><ins> [numbering change from <del>2.4</del> to 3] </ins>
4409
+ <strong> Update the tracks' affected sizes</strong>
4410
+ by adding in the |planned increase|.
4411
+ (If the affected size is an infinite <a>growth limit</a> ,
4412
+ set it to the track's <a>base size</a> plus the |planned increase|.)
4413
+ </ol>
4414
+ </blockquote>
4415
+ </ul>
4416
+
4417
+ <h4 id="clarify-2016">
4418
+ Clarifications</h4>
4419
+
4420
+ <ul id="change-2016-auto-min-editorial">
4421
+ <li>
4422
+ Clarified definition of <a>min-size contribution</a> .
4341
4423
(<a href="https://github.com/w3c/csswg-drafts/issues/507">Issue #507</a> )
4342
4424
<blockquote>
4343
4425
<p> Otherwise,
@@ -4353,14 +4435,30 @@ Changes</h2>
4353
4435
is ''width/auto'' ,
4354
4436
or else the item’s <a>min-content contribution</a> .
4355
4437
</blockquote>
4356
-
4438
+ <li id="change-2016-collapsed-gutter-alignment">
4439
+ Clarified that the space allotted through <a>distributed alignment</a>
4440
+ is part of the gutter, and collapses with it.
4441
+ (<a href="https://github.com/w3c/csswg-drafts/issues/1140">Issue #1140</a> )
4442
+ <blockquote>
4443
+ <p> A <a>collapsed track</a> is treated as having
4444
+ a fixed <a>track sizing function</a> of ''0px'' ,
4445
+ and the <a>gutters</a> on either side of it<ins> --
4446
+ including any space allotted through <a>distributed alignment</a> --
4447
+ </ins> <a>collapse</a> .</p>
4448
+ </blockquote>
4449
+ See also changes to <a href="https://www.w3.org/TR/css-align-3/">CSS Box Alignment</a> :
4450
+ <blockquote>
4451
+ <p> Alignment Subject(s):
4452
+ <del> The non-<a spec="css-grid" lt="collapsed track">collapsed</a> <a>grid tracks</a> in the appropriate axis.</del>
4453
+ <ins> The <a>grid tracks</a> in the appropriate axis,
4454
+ with any spacing inserted between tracks
4455
+ added to the relevant <a>gutters</a> ,
4456
+ and treating <a>collapsed gutters</a>
4457
+ as a single opportunity for space insertion.</ins>
4458
+ </blockquote>
4357
4459
<li> Miscellaneous trivial fixes: broken references, typos, etc.
4358
4460
</ul>
4359
4461
4360
- A <a href="https://drafts.csswg.org/css-grid-1/issues-cr-2016">Disposition of Comments</a> is available.
4361
- There remains an open issue on
4362
- <a href="https://drafts.csswg.org/css-grid-1/issues-cr-2016#issue-15">percentages inside shrink-wrapped grid containers</a>
4363
- at the time of publication.
4364
4462
4365
4463
Privacy and Security Considerations {#priv-sec}
4366
4464
===============================================
0 commit comments