Re: [csswg-drafts] [css-view-transitions-2] Optionally capture some properties (e.g. opacity/border) as style instead of snapshot (#10585)

One issue that came up while prototyping this is that with the new capture mode, you can't simply hide the old/new state by hiding the old/new pseudo, if the old/new state had backgrounds/borders/etc. And to mimic the current behavior, the author would need to change the HTML hierarchy (add a container element).

I'm not sure if this is a desirable outcome. Indeed layered capture provides a more superior experience, but the flat crossfade capture is *simpler*: everything is in the old/new elements and you can always hide one of them. I think this is a point towards keeping the old capture mode as an option and making the decision based on a CSS property (which can be the existing `view-transition-group` property or something new).

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


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

Received on Tuesday, 15 October 2024 10:29:19 UTC