W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2019

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

From: Emilio Cobos Álvarez via GitHub <sysbot+gh@w3.org>
Date: Wed, 30 Oct 2019 01:32:48 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-547700291-1572399167-sysbot+gh@w3.org>
> * 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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:55 UTC