Re: [csswg-drafts] [css-view-transitions-2] Retaining `view-transition-class` (and `view-transition-group`) from old state (#10757)

> Why not include the old state's classes by default? Is there a use case for dropping them? Is that use case more common than the use case for keeping them?

For example, a `view-transition-class` might depend on some state (`:focus-within`?) and if that state changes when capturing the new vt state we'd want to drop that class.

I don't think either is more common than the other, they're both legit but we chose this one (in the WG discussion) because it's simpler and more consistent with the rest of CSS. I believe that if we changed the default we'll have the inverse problem of some opt-in to override/omit the old classes.



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


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

Received on Wednesday, 21 August 2024 11:01:56 UTC