W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2021

Re: [csswg-drafts] [css-overflow-4] effect of gutters on viewport units (#5254)

From: Sugarteeth via GitHub <sysbot+gh@w3.org>
Date: Thu, 19 Aug 2021 04:49:55 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-901607190-1629348593-sysbot+gh@w3.org>
I've seen things as outlandish as introducing new units to css just to avoid changing the root problems with the default implementation of vh/vw, both on desktop and mobile. Why don't we implement something like the box-sizing rule, but for scrollbars, to switch whether or not the scrollbar or chrome is considered a part of the viewport or not? There doesn't _need_ to be a debate on how vw/vh should work if the individual user can decide for themselves.

Call it something like "viewport-box" maybe, and have the options be like "chrome-(inside|outside), scroll-(inside|outside)", with chrome-ouside & scroll-inside being the default as it is now. No worrying about backwards compatibility, just make the current implementation the default and put the onus on the user.

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

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 19 August 2021 04:49:56 UTC

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