- From: othermaciej <notifications@github.com>
- Date: Mon, 28 Sep 2015 23:58:25 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Message-ID: <w3c/webcomponents/issues/300/143965310@github.com>
I think custom pseudos are a good direction. Comments on some specific issues: (1) It's critical for component authors to be able to whitelist the set of style properties that can be applied to an exposed named part. (2) I'm somewhat partial to :part syntax because then we never have to worry about namespace collisions with future CSS built-in pseudos. (3) I don't think prefixing is necessary. If pseudo names are reused between different custom elements, that's not a problem, because you can specify the element and part. (4) I don't think @apply plus the increasing series of other features that need to come along with it is a replacement. The syntax is pretty inscrutable. I immediately understand what Philip's named part examples are doing, but I don't understand what his @apply + nesting proposal does. (5) Having a nice and easy to understand syntax for consumers of a component is important. Unlike many other aspects of web components, this syntax will be used by many garden-variety web developers, not just authors of JavaScript frameworks. --- Reply to this email directly or view it on GitHub: https://github.com/w3c/webcomponents/issues/300#issuecomment-143965310
Received on Tuesday, 29 September 2015 06:58:56 UTC