Re: [csswg-drafts] [css-cascade] Evaluate specificity of ::slotted and global styles in the same conditions (#6466)

I can definitely see the issue here but I'm not sure I agree with the solution, in part, because it results in potential breaking changes for existing code that has already worked around it. As I understood it, the slotted content was meant really to be a pointer to light DOM and not necessarily meant to change its styling.

That we can force a win by adding `!important` seems to be the workaround while still allowing `!important` from the light DOM to override even that. I'm not sure it's the best experience for those consuming the components rather than building them. 🤔 

Perhaps there's a middle ground.  An opt-into level specificity by the shadow DOM styles?

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


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

Received on Thursday, 2 September 2021 14:25:47 UTC