Apparently, there is a bug in the render engine that causes scroll stuttering when certain styles are combined. In this case drop-shadow with an internal overflow scroll container. The contain property did not help. And since box-shadow works unless you use a clip-path, let's just use box-shadow.