Re: [css-align] Clarification on the concept of 'parent' for Self Alignment 'auto' value resolution

On Wed, Aug 24, 2016 at 4:47 AM, Javier Fernandez <jfernandez@igalia.com> wrote:
> Hi Tab,
>
> I'd need further clarification on the "parent" concept for the
> Alignment 'auto' value resolution and the "flat-tree" concept.
>
> https://w3c.github.io/webcomponents/spec/shadow/#flat-trees
> https://w3c.github.io/webcomponents/spec/shadow/#attributes
>
> On 06/01/2016 01:06 AM, Tab Atkins Jr. wrote:
>> Anonymous boxes are, as the name suggests, *boxes* - they show up in
>> the box tree, which is constructed *from* the element tree.  "Parent
>> element" refers to the element tree; it doesn't care about box-tree
>> structure.  (And so there's no layout-time determination; this
>> behavior can instead be resolved at inheritance time.)
>>
>
> Would it be correct to consider your sentence "Parent element" refers to
> the element tree" in a more general way as "Parent element" refers to the
> flat-tree ?

Yes, after selectors are run, all of the rest of CSS operates on the flat tree.

~TJ

Received on Tuesday, 30 August 2016 23:03:19 UTC