Live data from Hacker News

Quirks of the Page Visibility API

mattj.io

21–22 of 22 posts

Re: Quirks of the Page Visibility API

#21
post #14

Off topic: This page is yet another example of many, many websites that display a useless horizontal scrollbar. Non-overlay scrollbars simply do not work with elements that are set to a width of 100vw. Using 100vw is almost always a mistake. https://duckduckgo.com/?q=avoid+100vw

Hi there, thanks for the feedback! I overlooked testing with scrollbars set to always show, as Firefox recently started following macOS/Windows system settings rather than using its own setting. I've updated the CSS to use `100%` to rectify this. For this specific post, a bare link was also causing additional horizontal scroll, so I addressed both in https://github.com/devadvance/devadvance.github.io/commit/6a....

Re: Quirks of the Page Visibility API

#22
post #14

Off topic: This page is yet another example of many, many websites that display a useless horizontal scrollbar. Non-overlay scrollbars simply do not work with elements that are set to a width of 100vw. Using 100vw is almost always a mistake. https://duckduckgo.com/?q=avoid+100vw

“No one” uses non-overlay scrollbars though.
Post reply on HN