Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Intent to implement: CSS display:contents

135 views
Skip to first unread message

Mats Palmgren

unread,
Nov 21, 2014, 11:09:19 AM11/21/14
to dev-pl...@lists.mozilla.org
Summary:
Styling an element with display:contents will inhibit generating
a box for the element, but its children and pseudo-elements still
generate boxes as normal.

Bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=907396

Link to standard:
CSS Display Module Level 3
http://dev.w3.org/csswg/css-display/#valdef-display-outside-contents

Platform coverage:
all Gecko based products

Estimated or target release:
Landed, disabled by default, in Firefox 36.
Turning on the pref by default: TBD
https://bugzilla.mozilla.org/show_bug.cgi?id=1102374

Preference behind which this will be implemented:
layout.css.display-contents.enabled

Jonas Sicking

unread,
Nov 21, 2014, 5:25:08 PM11/21/14
to Mats Palmgren, dev-platform
Awesome! I've looked forward to this for a long time!

/ Jonas
> _______________________________________________
> dev-platform mailing list
> dev-pl...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform

Jonas Sicking

unread,
Nov 21, 2014, 5:52:29 PM11/21/14
to Mats Palmgren, dev-platform
The spec looks a bit weird though. It says that "display: content;"
maps to "display-outside: content; display-inside: block".

Does that mean that you can't use "display: content;" to allow an
element to for example wrap two table-rows? Or to wrap some inline
text?

/ Jonas

L. David Baron

unread,
Nov 21, 2014, 5:58:20 PM11/21/14
to Jonas Sicking, dev-platform, Mats Palmgren
On Friday 2014-11-21 14:51 -0800, Jonas Sicking wrote:
> The spec looks a bit weird though. It says that "display: content;"
> maps to "display-outside: content; display-inside: block".

The display-inside value shouldn't actually matter; it gets ignored.
It just has to be something. (Perhaps it should be 'auto', though,
since that's the initial value.)

-David

--
𝄞 L. David Baron http://dbaron.org/ 𝄂
𝄢 Mozilla https://www.mozilla.org/ 𝄂
Before I built a wall I'd ask to know
What I was walling in or walling out,
And to whom I was like to give offense.
- Robert Frost, Mending Wall (1914)
signature.asc
0 new messages