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

What are you trying to achieve by requiring a new property? The only advantage that I see is that it would allow inheriting as normal, without requiring `all: unset` on `::contents` either. But you still need a declaration on another rule, so it seems less convenient than my ideas.

Note that even if we say that `::contents` always exists, browses can optimize it out if it gets no style (just like `::before`) so it wouldn't waste memory. And since the default is `display: contents`, then it generates no box by default.

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2406#issuecomment-2159439990 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 22:51:02 UTC