Re: [css-align] Computed value when using "auto"

On Mon, Jun 23, 2014 at 2:54 PM, Javier Fernandez <jfernandez@igalia.com> wrote:
> Hi,
>
> I've got some questions/doubts regarding several statements in the
> specification draft when talking about the "auto" keyword and its
> computed value for the align-self/items and justify-self/items properties.
>
> All the properties define a "Computed value" as the "Specified value";
> since none of them are inheritable, this value should be either the
> default or the one specified by the user.

This is just a mistake in the spec.  It should say "specified value,
except for auto (see prose)", like the properties in Flexbox/Grid do.

> In other specifications, like the CSS Grid Layout", some properties
> define a "Computed value" as "As specified, except for auto (see
> prose)". I think that the statement about "auto" computing to a
> different value is confusing; in the implementation I'm working on I've
> assumed that this computed value is defined during the layout phase, but
> I'm not sure whether it's what the specification actually describes.

It sounds like you don't understand what the value computation stages
mean; reading the Cascade spec should help
<http://dev.w3.org/csswg/css-cascade/>.

~TJ

Received on Monday, 23 June 2014 23:38:29 UTC