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

Re: [csswg-drafts] [css-display-3] Clarify whether display: contents applies to ::before and ::after

From: Loirooriol via GitHub <sysbot+gh@w3.org>
Date: Wed, 10 May 2017 20:19:05 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-300600483-1494447544-sysbot+gh@w3.org>
It's not much clear, but browsers seem to believe that `display: contents` should join different texts into a single run of text (#1281). Then, in the following example, "FooBar" would be a single flex item:

```html
<div>Foo</div>
```
```css
div { display: flex; justify-content: space-between }
div::after { content: 'Bar'; display: contents }
```

So in this case whether `::before` and `::after` support `display: contents` or not is observable by other means than box-related properties on the pseudo-elements.

I think `display: contents` should apply to these pseudo-elements.

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1345#issuecomment-300600483 using your GitHub account
Received on Wednesday, 10 May 2017 20:19:12 UTC

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