W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2018

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

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Thu, 19 Jul 2018 20:54:45 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-406411246-1532033684-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:30:53 UTC