Re: [csswg-drafts] Add a new media query feature: client-width and client-height, which equal to (viewport size - scrollbar size)

Yup, exactly. And further, you can adjust the `overflow` value based on a MQ, so you could get into styling loops with this where you apply `overflow:scroll` if the page is above a certain size, and switch to `overflow:hidden` when it's below that, and cycle back and forth as the scrollbars appear, shrink the page's size, then disappear.

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

Received on Thursday, 19 July 2018 20:54:54 UTC