W3C home > Mailing lists > Public > public-css-archive@w3.org > March 2019

Re: [csswg-drafts] [css-scoping] Please bring back scoped styles (#3547)

From: Benoît Rouleau via GitHub <sysbot+gh@w3.org>
Date: Wed, 13 Mar 2019 15:59:15 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-472486264-1552492752-sysbot+gh@w3.org>
> But yeah, that then doesn't block outside rules or inheritance from trickling into the subtree. ^_^

Which, now that I think about it, is often desirable.

I would really like to see `@scope` in addition to the Shadow DOM, because it's simpler and it covers the use case where you don't want to prevent outside styles from leaking in, but you want to prevent *inside* styles from leaking *out* AND have the ability to easily override outside styles without knowing their specificity.

GitHub Notification of comment by benface
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3547#issuecomment-472486264 using your GitHub account
Received on Wednesday, 13 March 2019 15:59:17 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:45 UTC