Re: [csswg-drafts] [css-view-transitions-2] Define behavior of root element in layered capture (#11150)

> I wonder if we need to handle mismatches at all, or just let them be

Theoretically a mismatch shouldn't be an issue with interpolatable properties. If there's a mismatch you get an animation from `border: 10px` -> `border: 0px`. But I wasn't sure if the UA CSS set up for layered capture could make things look visually wrong. The fact that we use `relative` positioning instead of `absolute` positioning for image-pair example.

But likely no. The difference with positioning shows up as which reference box the image-pair is aligned with, which is irrelevant if all the styles are unset in flat mode. So we'll need to be explicit about the way we set up the CSS if only one side has opted-in. Otherwise sounds like it should work.

And actually root -> root or root <-> element type of transitions do want root to be layered to animate the background. So makes sense to support it.

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


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

Received on Tuesday, 5 November 2024 21:22:09 UTC