W3C home > Mailing lists > Public > www-style@w3.org > November 2013

[css-flexbox] Computed 'display' of flex items

From: Simon Sapin <simon.sapin@exyr.org>
Date: Tue, 19 Nov 2013 14:01:39 +0000
Message-ID: <528B6F43.4070101@exyr.org>
To: www-style@w3.org
Hi,

Section 4 "Flex Items" says:

> The computed ‘display’ of a flex item is determined by applying the
> table in CSS 2.1 Chapter 9.7.

But computed values are determined before box generation. Does that mean 
that implementations need to know if an *element*, rather than just a 
box, is a flex item?


This seems contradictory with the rest of the spec. In particular, later 
in the same section:

> Some values of ‘display’ trigger the generation of anonymous boxes.
> For example, a misparented ‘table-cell’ child is fixed up by
> generating anonymous ‘table’ and ‘table-row’ elements around it.
> [CSS21] This fixup must occur before a flex container's children are
> promoted to flex items.


Am I missing something?

-- 
Simon Sapin
Received on Tuesday, 19 November 2013 14:02:07 UTC

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