- From: Hayato Ito <notifications@github.com>
- Date: Thu, 04 Feb 2016 00:15:08 -0800
- To: w3c/webcomponents <webcomponents@noreply.github.com>
Received on Thursday, 4 February 2016 08:15:49 UTC
Thanks. BTW, one of the main reasons we removed /deep/ is it's too powerful and it's very unfriendly combinator in terms of the performance. If we disallow any combinator, we could have the following declarative rules without siginificant performance penalty: ```css @global-compound-selector { /* This rule applies to any element, even it is in a descendant shadow tree. However, we can not use any combinator in a selector here. */ input { border : 10px solid black; color : red; } input([disabled]) { color : blue; } input([compact]) { width : auto; } input([full-width]) { width : 100%; } } ``` Just as a naive idea. --- Reply to this email directly or view it on GitHub: https://github.com/w3c/webcomponents/issues/376#issuecomment-179703991
Received on Thursday, 4 February 2016 08:15:49 UTC