W3C home > Mailing lists > Public > public-css-archive@w3.org > May 2017

[csswg-drafts] [css-display][css-flexbox] Blockification of layout-internal type

From: Loirooriol via GitHub <sysbot+gh@w3.org>
Date: Tue, 09 May 2017 15:48:16 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-227411680-1494344895-sysbot+gh@w3.org>
Loirooriol has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-display][css-flexbox] Blockification of layout-internal type ==
CSS Display defines [blockification](https://drafts.csswg.org/css-display-3/#blockify) as such:

> blockification [...] sets the box’s outer display type, if it is not none or contents, to block [...]

Some trivial examples:

 - A flex item with `display: block` (i.e. `block flow`) remains `block flow` (and establishes a BFC).
 - A flex item with `display: inline` (i.e. `inline flow`) becomes `block flow` (and establishes a BFC).
 - A flex item with `display: inline-block` (i.e. `inline flow-root`) becomes `block flow-root`.
 - A flex item with `display: flow-root` (i.e. `block flow-root`) remains `block flow-root`.
 - A flex item with `display: table-cell` (i.e. `table-cell flow-root`) becomes `block flow-root`.
Note: Edge generates anonymous table parents instead, according to an old Flexbox spec.
 - A flex item with `display: table` is especially defined in CSS Flexbox.

But now the interesting part:

 - A flex item with `display: table-row` (i.e. `table-row table-row`) becomes `block table-row`.

But this combination is not defined! How is it supposed to behave?

Firefox and Chrome seem to treat it like `display: block`. Edge still generates an anonymous parent table. https://jsfiddle.net/sn6y4y0m/1/

I think CSS Display should say that, when a box is blockified, if its inner display type is layout-internal, then it becomes `flow` or `flow-root`.


Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1340 using your GitHub account
Received on Tuesday, 9 May 2017 15:48:23 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 10:12:53 UTC