You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 25, 2019. It is now read-only.
@dbaron (and I believe others in the CSS WG discussion) mentioned that they would want scroll anchoring to apply in the window resize case.
I was thinking we had some other solution for that in Chrome (eg. doing a hit-test at the start of resize, like our rotation anchor stuff) but trying it on a couple sites on desktop I didn't see it working.
Perhaps scroll anchoring should say explicitly that it also applies in cases like resize and rotate?
The text was updated successfully, but these errors were encountered:
For rotate we do have a different solution in RotationViewportAnchor, which uses a hit-test. The requirements are slightly different, for example we try to anchor the center of the viewport while scroll anchoring aims at the top of the viewport.
I was always picturing that we'd delete RotationViewportAnchor and use the new scroll anchoring logic instead. I think the new logic is strictly better. It's faster since it doesn't need to hit test and it's more accurate because it keeps the thing at the top of the screen anchored instead of the thing in the middle. When you're hit-testing, you're forced to do middle to avoid toolbars.
@dbaron (and I believe others in the CSS WG discussion) mentioned that they would want scroll anchoring to apply in the window resize case.
I was thinking we had some other solution for that in Chrome (eg. doing a hit-test at the start of resize, like our rotation anchor stuff) but trying it on a couple sites on desktop I didn't see it working.
Perhaps scroll anchoring should say explicitly that it also applies in cases like resize and rotate?
The text was updated successfully, but these errors were encountered: