Skip to content

Commit 881632f

Browse files
committed
Align Flexbox's treatment of align-self on abspos elements with Alignment's. This is a minor behavior change for some abspos elements.
1 parent 47979e6 commit 881632f

File tree

2 files changed

+5
-4220
lines changed

2 files changed

+5
-4220
lines changed

css-flexbox/Overview.bs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,8 @@ Absolutely-Positioned Flex Children</h3>
656656
as if it were the sole <a>flex item</a> in the <a>flex container</a>,
657657
assuming both the child and the flex container
658658
were fixed-size boxes of their used size.
659+
For this purpose,
660+
a value of ''align-self: auto'' is treated identically to ''align-self/start''.
659661

660662
<div class='example'>
661663
The effect of this is that if you set, for example,
@@ -1958,7 +1960,9 @@ Cross-axis Alignment: the 'align-items' and 'align-self' properties</h3>
19581960
If either of the <a>flex item's</a> cross-axis margins are <a value for=margin>auto</a>,
19591961
'align-self' has no effect.
19601962

1961-
A value of <dfn value for=align-self>auto</dfn> for 'align-self'
1963+
On <a>absolutely positioned</a> elements,
1964+
a value of ''align-self/auto'' computes to itself.
1965+
On all other elements, a value of <dfn value for=align-self>auto</dfn> for 'align-self'
19621966
computes to the value of 'align-items' on the element’s parent,
19631967
or ''align-self/stretch'' if the element has no parent.
19641968
The alignments are defined as:

0 commit comments

Comments
 (0)