Re: [csswg-drafts] [css-color] Fallback lists for color properties

I believe the fallback feature in the variables spec already solves your use case?
https://drafts.csswg.org/css-variables-1/#example-abd63bac

```css
/* In the component’s style: */
.component .header {
  color: var(--header-color, blue);
}
.component .text {
  color: var(--text-color, black);
}

/* In the larger application’s style: */
.component {
  --text-color: #080;
  /* header-color isn’t set,
     and so remains blue,
     the fallback value */
}
```
If this covers your request, I'm guessing you could close the issue. If not, you might want to elaborate on what's missing for your use case(s).

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

Received on Friday, 27 April 2018 09:29:48 UTC