Re: [css-grid] Comments about grid item 'display' value and the term "grid-level boxes"

On Thu, Mar 26, 2015 at 9:11 AM, Mats Palmgren <mats@mozilla.com> wrote:
> I have two comments on the following text from "4. Grid Items":
> "A grid item establishes a new formatting context for its contents.
> The type of this formatting context is determined by its display
> value, as usual. The computed display of a grid item is determined
> by applying the table in CSS 2.1 Chapter 9.7. However, grid items
> are grid-level boxes, not block-level boxes: they participate in
> their container's grid formatting context, not in a block
> formatting context."
> http://dev.w3.org/csswg/css-grid/#grid-items
>
> 1. It omits that a grid item's 'display' value is blockified.
>    Please add the equivalent of this text from Flexbox:
>
> http://dev.w3.org/csswg/css-flexbox-1/#flex-items
> "The display value of a flex item is blockified: if the specified
> display of an in-flow child of an element generating a flex
> container is an inline-level value, it computes to its block-level
> equivalent. (See CSS2.1ยง9.7 [CSS21] and CSS Display [CSS3-DISPLAY]
> for details on this type of display value conversion.)"

Done, thanks.

> 2. I searched the spec text for "grid-level box" to try to find
>    its definition but this is the only occurrence.  This is when
>    I realized that the last sentence above *is* the definition of
>    "grid-level box", i.e. a box that participate in their
>    container's grid formatting context.  I found this a bit
>    confusing and would like you to consider reformulating that
>    last sentence to make it clear that it's defining the term
>    "grid-level box" there, rather than just mentioning a detail
>    about them in passing.

We've added an actual <dfn> to that term, to make it clear we're
defining the term.  (And did the same for "flex-level" in Flexbox.)

~TJ and fantasai

Received on Thursday, 7 May 2015 23:25:30 UTC