Re: [csswg-drafts] [css-values-4] Add vhc value (#4329)

> * Doesn't appear to have an easy way to do progressive enhancement, see [this example](https://codepen.io/afrehner/pen/dyyVYyK) - (I tested in firefox)

FWIW `height: calc(100vh - env(foo, 0px));` does work. That's just because `calc(100vh - 0)` is invalid, because `0` in calc get's parsed as a `<number>`, not a `<length>`, and you can't subtract `<length>` and `<number>`s.

That may be something worth special-casing / changing to make work? Not sure.

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

Received on Wednesday, 30 October 2019 01:32:50 UTC