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

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

From: Anthony Frehner via GitHub <sysbot+gh@w3.org>
Date: Tue, 15 Oct 2019 22:15:51 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-542428096-1571177750-sysbot+gh@w3.org>
> Ah, I hadn't realized you wanted `vhc` to _always_ represent the minimum viewport height (minus the pop-up chrome), even when that chrome isn't current visible.
> 
> So there are three distinct use cases:
> 
> * A stable layout that exactly fits the full viewport with minimized chrome.
> * A stable layout that exactly fits the viewport when pop-up browser chrome is displayed.
> * A dynamic layout that always exactly fits the current viewport, regardless of how many browser widgets are surrounding it.

Seems like a great summary, yes! :) 

I think everyone _hoped_ that one css unit (`vh`) could work for all those cases (and honestly it would be awesome if it did), but I'm not entirely sure what that would look like or how it would work. 

So I proposed an additional unit instead :D 

-- 
GitHub Notification of comment by frehner
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4329#issuecomment-542428096 using your GitHub account
Received on Tuesday, 15 October 2019 22:15:54 UTC

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