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

[css-align] computed value of 'align-self: auto'

From: L. David Baron <dbaron@dbaron.org>
Date: Fri, 11 Sep 2015 15:20:13 -0700
To: www-style@w3.org
Message-ID: <20150911222013.GA9694@pescadero.dbaron.org>
Reading the specification literally (although it's kinda clear
what's intended), 
https://drafts.csswg.org/css-align/#propdef-align-self says:

  # The auto and stretch keywords are as defined in ยง5.1
  # Inline/Main-Axis Alignment: the justify-self property.

which in turn says:

  # The auto keyword computes to itself on absolutely-positioned
  # elements, and to the computed value of justify-items on the
  # parent (minus any legacy keywords) on all other boxes, or start
  # if the box has no parent. Its behavior depends on the layout
  # model, as described below.

which means that the computed value of 'align-self: auto' is derived
from the value of 'justify-items' on the parent element.  I believe
deriving from 'align-items' was intended.

-David

-- 
๐„ž   L. David Baron                         http://dbaron.org/   ๐„‚
๐„ข   Mozilla                          https://www.mozilla.org/   ๐„‚
             Before I built a wall I'd ask to know
             What I was walling in or walling out,
             And to whom I was like to give offense.
               - Robert Frost, Mending Wall (1914)

Received on Friday, 11 September 2015 22:20:37 UTC

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