Skip to content

Commit 9d16e5f

Browse files
committed
[css-align] Make 'auto' only behave as 'normal' when finding the *actual* position of an abspos; revert to looking at *-items when finding the staticpos. Fixes #440.
1 parent 620eb8c commit 9d16e5f

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

css-align/Overview.bs

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -890,11 +890,14 @@ Inline/Main-Axis Alignment: the 'justify-self' property</h3>
890890
the box's outer edges are aligned within its <a>alignment container</a>
891891
<a href="#alignment-values">as described by its alignment value</a>.
892892

893-
The <dfn value for="justify-self">auto</dfn> keyword is interpreted as
894-
''justify-self/normal'' if the box is absolutely positioned or has no parent,
895-
and as the computed 'justify-items' value of the parent box
893+
The <dfn value for="justify-self">auto</dfn> keyword
894+
behaves as ''justify-self/normal'' if the box has no parent,
895+
or when determining the actual position of an absolutely positioned box.
896+
It behaves as the computed 'justify-items' value of the parent box
896897
(minus any ''legacy'' keywords)
897-
otherwise.
898+
otherwise
899+
(including when determining the <em>static</em> position
900+
of an absolutely positioned box).
898901

899902
The <dfn value for="justify-self">normal</dfn> keyword
900903
represents the “default” alignment for the layout mode.
@@ -1098,10 +1101,14 @@ Block/Cross-Axis Alignment: the 'align-self' property</h3>
10981101
the box's outer edges are aligned within its <a>alignment container</a>
10991102
<a href="#alignment-values">as described by its alignment value</a>.
11001103

1101-
The <dfn value for="align-self">auto</dfn> keyword is interpreted as
1102-
''align-self/normal'' if the box is absolutely positioned or has no parent,
1103-
and as the computed 'align-items' value of the parent box
1104-
otherwise.
1104+
The <dfn value for="align-self">auto</dfn> keyword
1105+
behaves as ''align-self/normal'' if the box has no parent,
1106+
or when determining the actual position of an absolutely positioned box.
1107+
It behaves as the computed 'align-items' value of the parent box
1108+
(minus any ''legacy'' keywords)
1109+
otherwise
1110+
(including when determining the <em>static</em> position
1111+
of an absolutely positioned box).
11051112

11061113
The <dfn value for="align-self">normal</dfn> keyword
11071114
represents the “default” alignment for the layout mode.

0 commit comments

Comments
 (0)