@@ -484,39 +484,41 @@ Subgrid Sizing Algorithm</h3>
484
484
Aspect-ratio–controlled Gutters</h2>
485
485
486
486
Issue: There's a desire for having row and column gaps maintain a particular aspect ratio.
487
- This is one proposal for doing so; other ideas are welcome.<br>
488
- Possible extension: allow aspect ratio multipliers on 'row-gap' and 'column-gap' as well (not really useful except if you're using percents).<br>
489
- Possible variation: use an `ar` unit instead of bare <<number>> s.<br>
487
+ This is one proposal for doing so; other ideas are welcome.
490
488
See discussion in <a href="https://github.com/w3c/csswg-drafts/issues/1116">Issue 1116</a> .
489
+ Note this feature is likely to move to css-align-4,
490
+ it is just being drafted up here while css-align-3 stabilizes.
491
491
492
492
<pre class="propdef">
493
493
Name : align-content, justify-content
494
- New values : [ <<number>> && <<content-distribution>>? ]
494
+ New values : [ <<aspect-ratio>> <<content-distribution>>? ]
495
495
</pre>
496
496
497
+
497
498
<dl dfn-for="align-content,justify-content" dfn-type=value>
498
- <dt> <dfn><<number> ></dfn>
499
+ <dt> <dfn><aspect-ratio ></dfn>
499
500
<dd>
500
- Represents a multiplier against the analogous quantity
501
+ A <a spec="css-values">dimension</a> with the unit ''ar'' ,
502
+ representing a multiplier against the analogous quantity
501
503
in the other dimension.
502
504
If that quantity cannot be determined
503
- (e.g. is itself specified as a <<number >> , or otherwise can't be referenced),
505
+ (e.g. is itself specified as a <<aspect-ratio >> , or otherwise can't be referenced),
504
506
then it is assumed to be zero.
505
507
506
508
Note: This value can expand gutters
507
509
even when there is no free space left,
508
510
causing overflow.
509
511
510
- Specifically, an 'align-content' value of ''1 '' represents
512
+ Specifically, an 'align-content' value of ''1ar '' represents
511
513
the amount of space (which may be zero) allocated between two adjacent
512
- <a>alignment subjects</a> (<a>grid tracks</a> / <a>flex lines</a> / <a>column boxes</a> )
514
+ <a>alignment subjects</a> (<a>grid tracks</a> / <a>flex lines</a> / <a spec="css-multicol" >column boxes</a> )
513
515
by the 'justify-content' property.
514
516
Unless a different <<content-distribution>> value is specified,
515
517
space is distributed according to the same <<content-distribution>> rules
516
518
as for 'justify-content' .
517
519
The behavior of <<number>> values for 'justify-content' is analogous.
518
520
519
- Note: The space allocated by ''align-content: 1 '' will be zero
521
+ Note: The space allocated by ''align-content: 1ar '' will be zero
520
522
if 'justify-content' does not allocate space
521
523
between adjacent <a>alignment subjects</a> :
522
524
either due to not having a <<content-distribution>> value
@@ -546,7 +548,7 @@ Aspect-ratio–controlled Gutters</h2>
546
548
grid-template-columns: repeat(auto-fill, 15em);
547
549
gap: 1em;
548
550
justify-content: space-evenly;
549
- align-content: 1.0 space-between;
551
+ align-content: 1ar space-between;
550
552
}
551
553
</pre>
552
554
@@ -558,7 +560,7 @@ Aspect-ratio–controlled Gutters</h2>
558
560
grid-template-columns: repeat(auto-fill, 15em);
559
561
gap: 1em 1.618em;
560
562
justify-content: space-evenly;
561
- align-content: 0.618 space-between;
563
+ align-content: 0.618ar space-between;
562
564
}
563
565
</pre>
564
566
</div>
0 commit comments