W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2020

Re: [csswg-drafts] [css-values-4] Clarify how and when the initial containing block and visual viewport may deviate (#5777)

From: Anthony Frehner via GitHub <sysbot+gh@w3.org>
Date: Fri, 11 Dec 2020 23:04:21 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-743471466-1607727860-sysbot+gh@w3.org>
> > This proposal is supported by the following article:
> > https://mind-bending-forks.github.io/css-viewport-percentage-length-units/
> 
> @mind-bending-forks, in the example pages in sections 2.2 and 2.3 of this article, is the content truncation problem you describe resolved if you use `100%` instead of `100vh` as the size of the `<body>` element?

that should work in that simple case, but it doesn't solve the need for having an accurate value for `vh` - I may want a `div` that is deep in my HTML tree to fill the screen 100% but that would require me to make sure that each and every parent of that `div` is also `100%` otherwise it won't work. Thus the value of (accurate) `vh` units that don't require developers to do that.  

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 11 December 2020 23:04:23 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:24 UTC