The live version of the page can be accessed here. It is divided into three main parts:
- Left sidebar
- Centered content
- Right sidebar
To ensure that the right sidebar is scrollable, I have used
overflow-y: scroll; right: -17px;
to hide the scrollbar. Both body
and html
elements have overflow-y: auto;
. This setup eliminates the need for dual scrollbars on the page.
ISSUE: (specifically in Chrome versions 62 and 63)
In Chrome, different machines display two distinct styles for the scrollbar: Case 1 and Case 2.
For case 1, the scrollbar in the right sidebar is "absolutely positioned," causing the page to hide 17px of itself. In contrast, for case 2, the scrollbar is "relatively positioned," resulting in the page hiding 17px equivalent to the scrollbar width.
QUESTION
1) Why do scrollbars vary on Chrome across different machines running the same OS and browser version?
2) Is there a solution to address this discrepancy without relying on plugins? Consider that Windows users experience case 2, while MacOS users encounter either case 1 or 2.