- From: Matthew Phillips <notifications@github.com>
- Date: Mon, 30 Jan 2017 15:37:10 -0800
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 30 January 2017 23:38:50 UTC
Hi @tabatkins, I like this proposal a lot! It seems that there is some overlap with the `@apply` proposal here. Where would you see this being useful where `@apply` would be less useful? One thing that comes to mind, and correct me if I'm wrong here, is that `part=` makes it even a little easier to theme that `@apply` mixins do, because you could cascade styles more easily. For example a CSS framework might tell you to add a part attribute to your form like: ```html <form part="bootstrap-form"> .. </form> ``` And then they could style anything within the form like: ```css :root::theme(bootstrap-form) label { /* special label rules */ } ``` Whereas you couldn't get this specificity using `@apply`. Is that the idea? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/webcomponents/issues/300#issuecomment-276227242
Received on Monday, 30 January 2017 23:38:50 UTC