This looks like a bug. I read somewhere on Reddit that Chrome and Firefox fixed this quickly, but it is only available for now in technical preview in Safari.
I experienced a similar problem. In my case, the position: fixed
is based on the container-type: inline-size
element, not the viewport.