Re: [csswg-drafts] [css-view-transitions-1] Possible perf footgun when styling pseudo-tree based on state (#8960)

> A way to set a temporary flag/label on the transition

Yes, that would help. The only problem is that for now this may lead authors to add `html:has(...)` for that.

> A way to know which element triggered the transition

Not sure what you mean by that. Talking about SPAs, the transition is triggered via JS and any state at that point can be managed as written above. I'm mostly concerned with handling the declarative state in CSS without causing any potential harm.

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


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

Received on Tuesday, 20 June 2023 17:24:31 UTC