Re: [css-align] align/justify-self:auto on the root node

On Sun, Jan 3, 2016 at 6:35 AM, Mats Palmgren <mats@mozilla.com> wrote:
> Both align/justify-self have this text in the description of 'auto':
> "or 'start' if the box has no parent"
> https://drafts.csswg.org/css-align-3/#propdef-justify-self
> https://drafts.csswg.org/css-align-3/#align-self-property
>
> It seems a bit odd to me that these properties have 'start' as the
> default value on the root node, as opposed to 'normal' on any other
> node (assuming all align/justify properties have initial values).
>
> It implies that a non-replaced absolutely-positioned root node does
> not "behave as stretch" as described for 'normal' under
> "Absolutely-positioned Boxes".  This appears to be a change in
> behavior by the recent addition of 'normal' ('auto' used to compute
> to itself on abs.pos. boxes and then 'auto' would "behave as stretch").
>
> Is this change in behavior intentional?
> If not, perhaps it would be better if 'auto' computed to 'normal'
> when the box has no parent?

It's not particularly intentional; "start" was just a good default
value.  Since we've changed/extended behavior a bit, I agree that
defaulting to "normal" makes sense.

~TJ

Received on Tuesday, 5 January 2016 00:44:13 UTC