W3C home > Mailing lists > Public > www-style@w3.org > January 2016

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

From: Mats Palmgren <mats@mozilla.com>
Date: Sun, 3 Jan 2016 15:35:43 +0100
To: www-style@w3.org
Message-ID: <568931BF.50804@mozilla.com>
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?

/Mats
Received on Sunday, 3 January 2016 14:36:13 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:59 UTC