Re: [csswg-drafts] [css-values]: Express conditional values in a more terse way (#5009)

> Zero/negative would always be an obvious authoring error

Not necessarily. Explicit invalidation is a potentially useful feature, forcing inheritance (on inherited properties):

```css
@media (...) {
  [foo=bar] {
    --mq: 0;
  }
}
```
`font-size: switch(var(--mq);...);`


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

Received on Friday, 8 May 2020 17:18:37 UTC