Re: [csswg-drafts] [css-view-transitions-1] top/left vs block-start/inline-start (#8886)

The awkwardness with this is because the `transform` property is in physical coordinates. The UA will have to convert the `transform` applied to the group from physical to logical coordinates which doesn't sound right.

The whole idea with the group pseudo is to position it in the viewport using `transform`, because it can be accelerated and the setup is for an ephemeral effect rather than proper positioning. Even if the author wants to override for a custom animation, they should still do it using `transform`. If they have a legit use-case that *needs* logical positioning for this animation, they can override `top`/`left` in favour of logical coordinates. Its the origin anyway so trivial to override to logical origin.

I would've been ok if we had logical transforms. Say in the future we do add logical transforms, using block-start/inline-start now still won't make it possible to switch to those because of compat. Authors can read the transform value computed by the UA, so we won't be able to change it from logical to physical coorindates.

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


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

Received on Thursday, 15 June 2023 19:26:28 UTC