W3C home > Mailing lists > Public > www-style@w3.org > April 2015

[css-align] Definition of align-self inconsistent with css-flexbox for abspos

From: Christian Biesinger <cbiesinger@google.com>
Date: Thu, 9 Apr 2015 14:41:34 -0400
Message-ID: <CAPTJ0XF=hDgVSw9dNcdL7e6hefSGtKhcO_Mz1w3haL-8LOYwVQ@mail.gmail.com>
To: www-style list <www-style@w3.org>
Hi there,

in reading http://dev.w3.org/csswg/css-align/#align-self-property I
noticed a discrepancy from flexbox for this property.

It says:
"The auto keyword is equivalent to start on replaced
absolutely-positioned boxes, and equivalent to stretch on all other
absolutely-positioned boxes. (This is because CSS 2.1 does not stretch
replaced elements to fit into fixed offsets.)"

However, in flexbox we have:
http://dev.w3.org/csswg/css-flexbox/#propdef-align-self
"Computed value:auto computes to parent’s align-items value; otherwise
as specified"

This should be made consistent, probably by changing css-align to have
an exception for flex/grid containers.

Separately, the prose in css-align never does specify what the
*computed* value is for auto. It says what auto is equivalent to, but
is not clear on whether that affects the computed value or not.

-christian
Received on Thursday, 9 April 2015 18:42:01 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:30 UTC