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

While the cascade concern makes some sense to me, it also strikes me as saying "if you can put a `div` inside the element, and style the nested div, that breaks the cascade". The only change here is being able to style a nested box without changing the HTML source. If the `::contents` pseudo-element is clearly exposed in developer tools, the behavior (and the debugging) are identical to nested elements.

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