Skip to content

Commit fc69c7d

Browse files
committed
[css-align] Rephrase/rearrange the justify-self abspos section a little for clarity.
1 parent d24606a commit fc69c7d

File tree

1 file changed

+32
-29
lines changed

1 file changed

+32
-29
lines changed

css-align/Overview.bs

Lines changed: 32 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -417,12 +417,12 @@ Overflow Alignment: the ''safe'' and ''true'' keywords</h3>
417417

418418
<!--
419419
██████ ███████ ██ ██ ████████ ████████ ██ ██ ████████
420-
██ ██ ██ ██ ██ ██ ███ ██ ██ ██ ███ ██ ██
421-
██ ██ ██ ██ ██ ████ ██ ██ ██ ████ ██ ██
422-
█████████ ███████ ██ ██ ██ ██ ██ ██ ██ ██████ ██ ██ ██ ██
423-
██ ██ ██ ██ ██ ██ ████ ██ ██ ██ ████ ██
424-
██ ██ ██ ██ ██ ██ ██ ███ ██ ██ ██ ███ ██
425-
██████ ███████ ██ ██ ██ ████████ ██ ██ ██
420+
██ ██ ██ ██ ██ ██ ███ ██ ██ ██ ███ ██ ██
421+
██ ██ ██ ██ ██ ████ ██ ██ ██ ████ ██ ██
422+
█████████ ███████ ██ ██ ██ ██ ██ ██ ██ ██████ ██ ██ ██ ██
423+
██ ██ ██ ██ ██ ██ ████ ██ ██ ██ ████ ██
424+
██ ██ ██ ██ ██ ██ ██ ███ ██ ██ ██ ███ ██
425+
██████ ███████ ██ ██ ██ ████████ ██ ██ ██
426426
-->
427427

428428
<h2 id='content-distribution'>
@@ -586,12 +586,12 @@ Overflow and Scroll Positions</h3>
586586

587587
<!--
588588
██████ ████████ ██ ████████
589-
██ ██ ██ ██ ██ ██ ██
590-
██ ██ ██ ██ ██ ██
591-
█████████ ███████ ██████ ██████ ██ ██████
592-
██ ██ ██ ██ ██ ██
593-
██ ██ ██ ██ ██ ██ ██
594-
██████ ████████ ████████ ██
589+
██ ██ ██ ██ ██ ██ ██
590+
██ ██ ██ ██ ██ ██
591+
█████████ ███████ ██████ ██████ ██ ██████
592+
██ ██ ██ ██ ██ ██
593+
██ ██ ██ ██ ██ ██ ██
594+
██████ ████████ ████████ ██
595595
-->
596596

597597
<h2 id='self-alignment'>
@@ -666,11 +666,17 @@ Inline/Main-Axis Alignment: the 'justify-self' property</h3>
666666
<dd>
667667
The 'justify-self' property applies along its containing block's <a>inline axis</a>.
668668

669-
When neither margin in this dimension is ''margin/auto''
670-
and neither offset property in this dimension is ''top/auto'',
671-
values other than ''justify-self/stretch'' cause <a href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width">non-replaced absolutely-positioned boxes</a>
672-
to use shrink-to-fit sizing for calculating ''width/auto'' measures,
673-
and 'justify-self' dictates alignment as follows:
669+
If either margin in this dimension is ''margin/auto'',
670+
or either offset property in this dimension is ''top/auto'',
671+
'justify-self' has no effect.
672+
Otherwise, its effects are defined below.
673+
674+
The ''justify-self/auto'' keyword behaves as ''start'' on replaced absolutely-positioned boxes,
675+
and behaves as ''justify-self/stretch'' on all other absolutely-positioned boxes.
676+
(This is because CSS 2.1 does not stretch replaced elements to fit into fixed offsets.)
677+
678+
Values other than ''justify-self/stretch'' cause <a href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width">non-replaced absolutely-positioned boxes</a>
679+
to use shrink-to-fit sizing for calculating ''width/auto'' measures.
674680

675681
The <a>alignment container</a> is the box's containing block
676682
as modified by the offset properties ('top'/'right'/'bottom'/'left').
@@ -682,9 +688,6 @@ Inline/Main-Axis Alignment: the 'justify-self' property</h3>
682688
are ignored in favor of alignment as specified here
683689
and the used value of the offset properties are not adjusted to correct for the over-constraint.
684690

685-
The ''justify-self/auto'' keyword is equivalent to ''start'' on replaced absolutely-positioned boxes,
686-
and equivalent to ''justify-self/stretch'' on all other absolutely-positioned boxes.
687-
(This is because CSS 2.1 does not stretch replaced elements to fit into fixed offsets.)
688691

689692
<dt>Table Cells:
690693
<dd>
@@ -839,13 +842,13 @@ Baseline Self-Alignment</h3>
839842
This may increase the intrinsic size contribution of the <a>alignment subject</a>.
840843

841844
<!--
842-
████ ████████ ████████ ██ ██ ██████
845+
████ ████████ ████████ ██ ██ ██████
843846
██ ██ ██ ██ ██ ███ ███ ██ ██
844-
██ ██ ██ ██ ██ ████ ████ ██
845-
█████████ ███████ ██ ██ ██████ ██ ███ ██ ██████
847+
██ ██ ██ ██ ██ ████ ████ ██
848+
█████████ ███████ ██ ██ ██████ ██ ███ ██ ██████
846849
██ ██ ██ ██ ██ ██ ██ ██
847850
██ ██ ██ ██ ██ ██ ██ ██ ██
848-
████ ██ ████████ ██ ██ ██████
851+
████ ██ ████████ ██ ██ ██████
849852
-->
850853

851854
<h2 id='default-alignment'>
@@ -936,11 +939,11 @@ Block/Cross-Axis Alignment: the 'align-items' property</h3>
936939

937940
<!--
938941
████████ ███ ██████ ████████ ██ ████ ██ ██ ████████
939-
██ ██ ██ ██ ██ ██ ██ ██ ██ ███ ██ ██
940-
██ ██ ██ ██ ██ ██ ██ ██ ████ ██ ██
941-
████████ ██ ██ ██████ ██████ ██ ██ ██ ██ ██ ██████
942-
██ ██ █████████ ██ ██ ██ ██ ██ ████ ██
943-
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ███ ██
942+
██ ██ ██ ██ ██ ██ ██ ██ ██ ███ ██ ██
943+
██ ██ ██ ██ ██ ██ ██ ██ ████ ██ ██
944+
████████ ██ ██ ██████ ██████ ██ ██ ██ ██ ██ ██████
945+
██ ██ █████████ ██ ██ ██ ██ ██ ████ ██
946+
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ███ ██
944947
████████ ██ ██ ██████ ████████ ████████ ████ ██ ██ ████████
945948
-->
946949

0 commit comments

Comments
 (0)