You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A <a>flex item</a> participates in first (last) <a>baseline content-alignment</a>
542
527
in its flex line if
543
528
its computed 'align-content' is ''baseline'' (''last-baseline'')
544
-
and its computed 'align-self' is ''<item-position>/stretch'' or ''start'' (''end'').
529
+
and its computed 'align-self' is ''<content-distribution>/stretch'' or ''start'' (''end'').
545
530
546
531
<dt>Grid Items:
547
532
<dd>
548
533
A <a>grid item</a> participates in first (last) <a>baseline content-alignment</a>
549
534
in either its row or column (whichever matches its <a>inline axis</a>)
550
535
if its computed 'align-content' is ''baseline'' (''last-baseline''),
551
-
and its computed 'align-self' or 'justify-self' (whichever affects its <a>block axis</a>) is ''<item-position>/stretch'' or ''start'' (''end'').
536
+
and its computed 'align-self' or 'justify-self' (whichever affects its <a>block axis</a>) is ''<content-distribution>/stretch'' or ''start'' (''end'').
552
537
</dl>
553
538
554
539
If a box spans multiple <a>shared alignment contexts</a>,
@@ -597,7 +582,7 @@ Inline/Main-Axis Alignment: the 'justify-self' property</h3>
597
582
598
583
<pre class="propdef">
599
584
Name: justify-self
600
-
Value: auto | <<baseline-position>> | [ <<overflow-position>>? && <<item-position>> ]
Applies to: block-level boxes, absolutely-positioned boxes, and grid items
603
588
Inherited: no
@@ -646,7 +631,7 @@ Inline/Main-Axis Alignment: the 'justify-self' property</h3>
646
631
647
632
When neither margin in this dimension is ''margin/auto''
648
633
and neither offset property in this dimension is ''top/auto'',
649
-
values other than ''<item-position>/stretch'' cause <a href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width">non-replaced absolutely-positioned boxes</a>
634
+
values other than ''<content-distribution>/stretch'' cause <a href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width">non-replaced absolutely-positioned boxes</a>
650
635
to use shrink-to-fit sizing for calculating ''width/auto'' measures,
651
636
and 'justify-self' dictates alignment as follows:
652
637
@@ -661,7 +646,7 @@ Inline/Main-Axis Alignment: the 'justify-self' property</h3>
661
646
and the used value of the offset properties are not adjusted to correct for the over-constraint.
662
647
663
648
The ''justify-self/auto'' keyword is equivalent to ''start'' on replaced absolutely-positioned boxes,
664
-
and equivalent to ''<item-position>/stretch'' on all other absolutely-positioned boxes.
649
+
and equivalent to ''<content-distribution>/stretch'' on all other absolutely-positioned boxes.
665
650
(This is because CSS 2.1 does not stretch replaced elements to fit into fixed offsets.)
666
651
667
652
<dt>Table Cells:
@@ -698,7 +683,7 @@ Block/Cross-Axis Alignment: the 'align-self' property</h3>
698
683
699
684
<pre class="propdef">
700
685
Name: align-self
701
-
Value: auto | <<baseline-position>> | [ <<overflow-position>>? && <<item-position>> ]
Applies to: flex items, grid items, and absolutely-positioned boxes
704
689
Inherited: no
@@ -733,7 +718,7 @@ Block/Cross-Axis Alignment: the 'align-self' property</h3>
733
718
734
719
When neither margin in this dimension is ''margin/auto''
735
720
and neither offset property in this dimension is ''top/auto'',
736
-
values other than ''<item-position>/stretch'' cause <a href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height">non-replaced absolutely-positioned boxes</a>
721
+
values other than ''<content-distribution>/stretch'' cause <a href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height">non-replaced absolutely-positioned boxes</a>
737
722
to use shrink-to-fit sizing for calculating ''width/auto'' measures,
738
723
and 'align-self' dictates alignment as follows:
739
724
@@ -748,7 +733,7 @@ Block/Cross-Axis Alignment: the 'align-self' property</h3>
748
733
and the used value of the offset properties are not adjusted to correct for the over-constraint.
749
734
750
735
The ''align-self/auto'' keyword is equivalent to ''start'' on replaced absolutely-positioned boxes,
751
-
and equivalent to ''<item-position>/stretch'' on all other absolutely-positioned boxes.
736
+
and equivalent to ''<content-distribution>/stretch'' on all other absolutely-positioned boxes.
752
737
(This is because CSS 2.1 does not stretch replaced elements to fit into fixed offsets.)
753
738
754
739
<dt>Table Cells:
@@ -826,7 +811,7 @@ Inline/Main-Axis Alignment: the 'justify-items' property</h3>
@@ -891,7 +876,7 @@ Block/Cross-Axis Alignment: the 'align-items' property</h3>
891
876
Computes to:
892
877
893
878
<ul>
894
-
<li>''<item-position>/stretch'' for flex containers and grid containers
879
+
<li>''<content-distribution>/stretch'' for flex containers and grid containers
895
880
<li>''start'' for everything else
896
881
</ul>
897
882
</dl>
@@ -1053,7 +1038,7 @@ Changes</h2>
1053
1038
1054
1039
* Added ''last-baseline'' keyword.
1055
1040
* Improved details of baseline alignment.
1056
-
* Changed handling of ''justify-self/auto''/''<item-position>/stretch'' for block-level and abspos elements in 'justify-self'/'align-self' to be more powerful and less confusing.
1041
+
* Changed handling of ''justify-self/auto''/''<content-distribution>/stretch'' for block-level and abspos elements in 'justify-self'/'align-self' to be more powerful and less confusing.
1057
1042
* Tightened up grammar combinations with <<overflow-position>> to be restricted to values that actually make sense.
0 commit comments