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

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

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Wed, 30 Aug 2017 16:32:59 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-326046610-1504110771-sysbot+gh@w3.org>
> (even the ones higher up in the tree!).

This only applies to the root scroller, so at max this means you might be able to change it on `body` and have it affect `html` (is that right? I forget what all the complexity around root scrollers means).  Blame ancient browsers for screwing up "which element styles the canvas/window?" so bad. ^_^

Aside from that one bit of body->html jumping, this is otherwise identical to recomputing `em` units based on a `font-size` change. Which, I know, requires some complexity to handle in a performant manner, but is a proven mechanism at least.


And again, coming at it from the author side rather than impl, *not* doing this means that it is *impossible* to write something that wants to be a % of the viewport when scrollbars appear. That *sucks*, it's the sort of "are you *kidding me*" moment that super-frustrates authors.  It makes viewport units just a broken feature (since scrollbars are, after all, *the rule* on pages, rather than the exception).

GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1766#issuecomment-326046610 using your GitHub account
Received on Wednesday, 30 August 2017 16:32:56 UTC

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