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

If we'd just use the `display` for toggling it on, then the only reason to have a separate property could be if we'd want to control if the pseudo-element should include the `::before` and `::after`.

I am not a browser engineer, and if it could be done in a way that every element will inherently have a `::contents` always applied without any performance or other issues — sure, why not. But it is unclear to me why is it useful to have them always be generated, compared to generating them conditionally?

-- 
GitHub Notification of comment by kizu
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2406#issuecomment-2159446831 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:58:17 UTC