W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2021

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

From: Emilio Cobos Álvarez via GitHub <sysbot+gh@w3.org>
Date: Tue, 20 Jul 2021 13:39:45 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-883401353-1626788383-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:39 UTC