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

Re: [csswg-drafts] [css-values] Should viewport units still depend on scrollbar width for overflow:scroll? (#1766)

From: Krzysztof Maczyński via GitHub <sysbot+gh@w3.org>
Date: Mon, 04 Feb 2019 16:48:40 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-460321819-1549298919-sysbot+gh@w3.org>
If the viewport-percentage units are to be defined as independent of whether there are scrollbars, it's much more useful to always subtract a default scrollbar width. This way there isn't overflow when a single dimension in the layout or a sum thereof reaches 100 of the relevant units. And if there are no scrollbars, some stuff may be smaller, but that's not as big a deal (although authors may want to stretch or repeat backgrounds to cover the extra space).

It makes the most important use case easier when (actually if) the relevant environment variable arrives by not requiring its use along with inelegant calc expressions and possible at all for the near future.

-- 
GitHub Notification of comment by ByteEater-pl
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1766#issuecomment-460321819 using your GitHub account
Received on Monday, 4 February 2019 16:48:42 UTC

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