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

> (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