YThanks for an illuminating piece. funny enough, overscroll-behavior: contain will not apply or affect an element without enough content to apply a scrollbar. so no overscroll-behavior if no overflow contentComment·Article·Jun 27, 2022·Better scrolling through modern CSS