Re: [csswg-drafts] [css-scoping-1] Specificity of :host, ::slotted, and :host-context doesn't seem to be defined? (#1915)

I mean, the way `!important` was designed to work on shadow DOM was to, by default, allow the "outside" to style its stuff as it wants, but let the component use `!important` for stuff it relies on.

For the example of the accordion, it probably makes sense that, given hiding stuff is core to it, `display: none` / `visibility: hidden` should probably be `!important`. I see no reason why `font-weight` / `margin` / etc should be `!important` there unless I'm missing something though.

Anyways, it seems to me like if the current model doesn't solve some of the use-cases, those should probably be discussed in a separate new issue, rather than a 4 year old closed issue.

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


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

Received on Tuesday, 20 July 2021 13:39:46 UTC