Re: [csswg-drafts] [css-pseudo] Add a ::contents pseudo-element (#2406)

My preferred way would be no boxes by default, and thus no custom inheritance or default `all`:

```CSS
#a::contents { display: contents; color: blue;  }
#b::contents { display: block }
```

If we could have some non-contents value as the initial non-generating value and allow `contents` to generate the box. This will cover the “set inherited properties without generating a box” use case, won't have the `all` weirdness or any custom inheritance, and will (mostly) prevent authors from applying the `*::contents {}` (outside the `display: contents` case).

While the `::contents` will be tremendously useful, I don't think having an extra `display` required for it will make it in any way worse to use.

-- 
GitHub Notification of comment by kizu
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2406#issuecomment-2159498759 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 10 June 2024 23:39:13 UTC