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

Note too (developing your suggested syntax)

```
.bg {
  background-color: var(--customBackground), hotpink;
}

body {
  --customBackground: "Hello World"; /* not a valid color or background */
}
```
the fallback solution you suggest would not help. It would work when the variable is not set (as does the solution mentioned by @jonjohnjohnson ) but does not help when it **has** been set, but to an invalid value. The fallback is discarded by that point.

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

Received on Friday, 27 April 2018 10:29:27 UTC