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

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

From: Keith Grant via GitHub <sysbot+gh@w3.org>
Date: Mon, 14 Sep 2020 17:11:48 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-692192520-1600103507-sysbot+gh@w3.org>
> `@scope` can't be used without adding some identificator for a scope element, when `<style scoped>` can. It makes `@scope` rule absolutely useless, when you trying to avoid making your DOM look like messf*ck.

Without `@scope`, the styles MUST be inlined in the HTML, and cannot be written in an external stylesheet. This also means the entire `<style>` block would have to be repeated in the HTML if you wanted the same styles in another scoped region elsewhere

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 14 September 2020 17:11:50 UTC

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