W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2020

Re: [csswg-drafts] [css-scoping] Proposal for light-dom scoping/namespacing with re-designed `@scope` rule (#5809)

From: Natalie Weizenbaum via GitHub <sysbot+gh@w3.org>
Date: Mon, 28 Dec 2020 22:22:00 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-751882186-1609194119-sysbot+gh@w3.org>
*(Context: I'm the tech lead for CSS infrastructure at Google)*

This sort of declarative, light-DOM scoping would be very useful for our widest use-case of component-based styles that may either be rendered server-side or client-side, and that sometimes need escape hatches to do global styles. We would probably take measures to enforce that component scopes corresponded one-to-one with templates, so that we could reason locally about those styles for various optimization passes. This is something that's historically been very difficult to do safely in CSS, so a scope mechanism enabling it is very exciting.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 28 December 2020 22:22:02 UTC

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