Learned a new thing, thanks. What about overflow: overlay? It can also solve the problem by being on top of layout and not part of it. Browsers still support it, although it is deprecated (never understood why).
It could. Right now, they've got about the same amount of support, so it wouldn't even matter much. (Though the caniuse stat is kind of misleading, since you wouldn't see the scrollbar on mobile anyways, and a large part of the non-support is coming from Safari on iOs)
Comments
Learned a new thing, thanks. What about overflow: overlay? It can also solve the problem by being on top of layout and not part of it. Browsers still support it, although it is deprecated (never understood why).
It could. Right now, they've got about the same amount of support, so it wouldn't even matter much. (Though the caniuse stat is kind of misleading, since you wouldn't see the scrollbar on mobile anyways, and a large part of the non-support is coming from Safari on iOs)