Re: [css-houdini-drafts] Global CSS Mixins

Yes, we've found that using custom properties to apply things to 
shadow DOM is a little clunky as soon as you want to respond to 
`:hover` or similar; you kinda have to create families of variables, 
like `--foo-button` and `--foo-button-hover` (and more, if you want 
`:focus`, etc).

We've been looking into ways to make this work better, but it's 
difficult to do well without having some bad performance regressions.
  Putting selectors into `@apply`'d rules defeats much of the 
optimizations browsers use to tell when they need to recalculate style
 for an element (an expensive process), so we have to be really 
careful about how we introduce this.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at 
https://github.com/w3c/css-houdini-drafts/issues/332#issuecomment-262066892
 using your GitHub account

Received on Monday, 21 November 2016 21:06:22 UTC