This css tries to work in Safari. Sadly the positioning only updates in relation to the scroll position upon window resize. Chrome and Firefox stick with the scroll position at initial page load.
```
position: fixed;
position-anchor: --anchor;
inset-inline: anchor(inside);
inset-block-start: max(0px, anchor(0%));
inset-block-end: max(0px, anchor(100%));
```