Re: [csswg-drafts] [view-transitions-1] Mismatch between roots causes offset values (#8625)

+1 to this approach.

Just to add - I think the same issue can come up on desktop with RTL pages and the vertical scrollbar. The snapshot root's origin is under the left side vertical scrollbar (browsers vary on whether a main frame's scrollbar gets put on the left hand side, Chrome keeps it on the right. An RTL iframe's scrollbar is always on the left though)

Would it make sense to put `snapshotRoot` on the `ViewTransition`? That way we're not polluting the global object and it'd also work better with scoped transitions, I think?

-- 
GitHub Notification of comment by bokand
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8625#issuecomment-1482926419 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 24 March 2023 14:48:05 UTC