W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2016

[csswg-drafts] [css-display-3] Display contents on the root element.

From: Emilio Cobos Álvarez via GitHub <sysbot+gh@w3.org>
Date: Wed, 14 Dec 2016 09:34:45 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-195481860-1481708082-sysbot+gh@w3.org>
emilio has just created a new issue for 
https://github.com/w3c/csswg-drafts:

== [css-display-3] Display contents on the root element. ==
In https://drafts.csswg.org/css-display-3/#valdef-display-contents, 
there's no explicit mention to how display contents should behave when
 specified on the root element, i.e., `html { display: contents }`.

There are a few places in the CSS spec where some elements (like the 
root element, out of flow positioned elements, floats, or child of 
grid/flex items) get "blockified". It makes sense to allow display: 
contents on most of these elements, since there are use cases for 
display: contents under a flex or grid element.

The only shipping implementation so far (Gecko's) allows specifying 
display: contents on out of flow positioned elements and floats, but 
not the root. The in-progress blink implementation has aligned with 
Gecko in this regard, but this should be specified somewhere, in order
 to prevent compat issues.

cc @rune-opera 

Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/805 using your GitHub 
account
Received on Wednesday, 14 December 2016 09:35:21 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:06 UTC