Re: [csswg-drafts] [css-display] What owns display types, elements or boxes?

I think elements (and pseudo-elements) should have these characteristics:

 - Inner display type: `inline`, `block`, `run-in`, <layout-internal>
 - Outer display type: `flow`, `flow-root`, `table`, `flex`, `grid`, `ruby`, <layout-internal>
 - Whether it generates a ::marker

And boxes should have these characteristics:

 - Box-level: inline-level, block-level, flex-level, grid-level, <layout-internal>
 - Container type: inline box, block container, table wrapper box, table box, flex container, grid container, ruby container, <layout-internal>
 - Formatting context: none, inline, block, table, flex, grid, ruby

Of course there is a lot of overlap, e.g. an `inline` outer display type produces an inline-level box (in flow layout). But `run-in` also generates an inline-level box (at some other place, or with some extra box wrapper).

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1480#issuecomment-307885890 using your GitHub account

Received on Monday, 12 June 2017 18:56:07 UTC