One CSS Trick to Eliminate Scrollbar Layout Shifts (opens in new tab)
When a webpage’s content exceeds the viewport height, browsers typically introduce a vertical scrollbar. This can lead to layout shifts, especially when navigating between pages or toggling content visibility, as the presence or absence of the scrollbar alters the available width for content.
Read the original article