Skip to content

Commit 9871fb4

Browse files
author
Peter Linss
committed
merge
2 parents 7b1b95b + 1f340f2 commit 9871fb4

2 files changed

Lines changed: 21 additions & 7 deletions

File tree

css-align/Overview.bs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ Inline/Main-Axis Alignment: the 'justify-self' property</h3>
630630
the box's outer edges are aligned within its <a>alignment container</a>
631631
<a href="#alignment-values">as described by its alignment value</a>.
632632

633-
The <dfn value for="justify-self, align-self">auto</dfn> keyword computes to
633+
The <dfn value for="justify-self">auto</dfn> keyword computes to
634634
itself on absolutely-positioned elements,
635635
and to the computed value of 'justify-items' on the parent
636636
(minus any ''legacy'' keywords) on all other boxes,
@@ -745,7 +745,14 @@ Block/Cross-Axis Alignment: the 'align-self' property</h3>
745745
the box's outer edges are aligned within its <a>alignment container</a>
746746
<a href="#alignment-values">as described by its alignment value</a>.
747747

748-
The ''align-self/auto'' and ''align-self/stretch'' keywords are as defined in [[#justify-self-property]].
748+
The <dfn value for="align-self">auto</dfn> keyword computes to
749+
itself on absolutely-positioned elements,
750+
and to the computed value of 'align-items' on the parent
751+
(minus any ''legacy'' keywords) on all other boxes,
752+
or ''align-self/start'' if the box has no parent.
753+
Its behavior depends on the layout model, as described for 'justify-self'.
754+
755+
The ''align-self/stretch'' keyword is as defined in [[#justify-self-property]].
749756

750757
All other values are as defined in [[#alignment-values]], above.
751758

css-align/Overview.html

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ <h3 class="heading settled" data-level="5.1" id="justify-self-property"><span cl
606606
</table>
607607
<p>Justifies the box within its parent along the inline/row/main axis:
608608
the box’s outer edges are aligned within its <a data-link-type="dfn" href="#alignment-container">alignment container</a> <a href="#alignment-values">as described by its alignment value</a>.</p>
609-
<p>The <dfn class="css" data-dfn-for="justify-self, align-self" data-dfn-type="value" data-export="" id="valdef-justify-self-auto">auto<a class="self-link" href="#valdef-justify-self-auto"></a></dfn> keyword computes to
609+
<p>The <dfn class="css" data-dfn-for="justify-self" data-dfn-type="value" data-export="" id="valdef-justify-self-auto">auto<a class="self-link" href="#valdef-justify-self-auto"></a></dfn> keyword computes to
610610
itself on absolutely-positioned elements,
611611
and to the computed value of <a class="property" data-link-type="propdesc" href="#propdef-justify-items">justify-items</a> on the parent
612612
(minus any <a class="css" data-link-type="maybe" href="#valdef-justify-items-legacy">legacy</a> keywords) on all other boxes,
@@ -698,14 +698,20 @@ <h3 class="heading settled" data-level="5.2" id="align-self-property"><span clas
698698
<td>visual
699699
<tr>
700700
<th>Computed value:
701-
<td>specified value, except for <a class="css" data-link-type="maybe" href="#valdef-justify-self-auto">auto</a> (see prose)
701+
<td>specified value, except for <a class="css" data-link-type="maybe" href="#valdef-align-self-auto">auto</a> (see prose)
702702
<tr>
703703
<th>Animatable:
704704
<td>no
705705
</table>
706706
<p>Aligns the box within its parent along the block/column/cross axis:
707707
the box’s outer edges are aligned within its <a data-link-type="dfn" href="#alignment-container">alignment container</a> <a href="#alignment-values">as described by its alignment value</a>.</p>
708-
<p>The <a class="css" data-link-type="maybe" href="#valdef-justify-self-auto">auto</a> and <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-flexbox-1/#valdef-align-items-stretch">stretch</a> keywords are as defined in <a href="#justify-self-property">§5.1 Inline/Main-Axis Alignment: the justify-self property</a>.</p>
708+
<p>The <dfn class="css" data-dfn-for="align-self" data-dfn-type="value" data-export="" id="valdef-align-self-auto">auto<a class="self-link" href="#valdef-align-self-auto"></a></dfn> keyword computes to
709+
itself on absolutely-positioned elements,
710+
and to the computed value of <a class="property" data-link-type="propdesc" href="#propdef-align-items">align-items</a> on the parent
711+
(minus any <a class="css" data-link-type="maybe" href="#valdef-justify-items-legacy">legacy</a> keywords) on all other boxes,
712+
or <span class="css">start</span> if the box has no parent.
713+
Its behavior depends on the layout model, as described for <a class="property" data-link-type="propdesc" href="#propdef-justify-self">justify-self</a>.</p>
714+
<p>The <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-flexbox-1/#valdef-align-items-stretch">stretch</a> keyword is as defined in <a href="#justify-self-property">§5.1 Inline/Main-Axis Alignment: the justify-self property</a>.</p>
709715
<p>All other values are as defined in <a href="#alignment-values">§3 Alignment Values</a>, above.</p>
710716
<hr>
711717
<dl>
@@ -731,7 +737,7 @@ <h3 class="heading settled" data-level="5.2" id="align-self-property"><span clas
731737
In terms of CSS2.1 formatting <a data-link-type="biblio" href="#biblio-css21">[CSS21]</a>,
732738
the rules for "over-constrained" computations in <a href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height">section 10.6.4</a> are ignored in favor of alignment as specified here
733739
and the used value of the offset properties are not adjusted to correct for the over-constraint.</p>
734-
<p>The <a class="css" data-link-type="maybe" href="#valdef-justify-self-auto">auto</a> keyword is equivalent to <a class="css" data-link-type="maybe" href="#valdef-self-position-start">start</a> on replaced absolutely-positioned boxes,
740+
<p>The <a class="css" data-link-type="maybe" href="#valdef-align-self-auto">auto</a> keyword is equivalent to <a class="css" data-link-type="maybe" href="#valdef-self-position-start">start</a> on replaced absolutely-positioned boxes,
735741
and equivalent to <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-flexbox-1/#valdef-align-items-stretch">stretch</a> on all other absolutely-positioned boxes.
736742
(This is because CSS 2.1 does not stretch replaced elements to fit into fixed offsets.)</p>
737743
<dt>Table Cells:
@@ -1088,7 +1094,8 @@ <h3 class="no-num heading settled" id="index-defined-here"><span class="content"
10881094
auto
10891095
<ul>
10901096
<li><a href="#valdef-justify-content-auto">value for justify-content, align-content</a><span>, in §4</span>
1091-
<li><a href="#valdef-justify-self-auto">value for justify-self, align-self</a><span>, in §5.1</span>
1097+
<li><a href="#valdef-justify-self-auto">value for justify-self</a><span>, in §5.1</span>
1098+
<li><a href="#valdef-align-self-auto">value for align-self</a><span>, in §5.2</span>
10921099
<li><a href="#valdef-justify-items-auto">value for justify-items</a><span>, in §6.1</span>
10931100
<li><a href="#valdef-align-items-auto">value for align-items</a><span>, in §6.2</span>
10941101
</ul>

0 commit comments

Comments
 (0)