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

Re: [csswg-drafts] [css-display] Sort out interaction of "display:contents" with font-size and line-height

From: Loirooriol via GitHub <sysbot+gh@w3.org>
Date: Wed, 19 Apr 2017 20:54:26 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-295437708-1492635265-sysbot+gh@w3.org>
I think `display: contents` would be saner if each contiguous run of text that is directly contained inside an element with `display: contents` was wrapped in an anonymous inline element. That anonymous element would inherit from the element with `display: contents`, not through the box tree. I think this would also solve #1118.

This would have implications like Foo and Bar becoming distinct flex items in

    <div style="display:flex">Foo<span style="display: contents">Bar</span></div>

which I don't think is bad.

GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1249#issuecomment-295437708 using your GitHub account
Received on Wednesday, 19 April 2017 20:54:33 UTC

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