- From: Kevin Babbitt via GitHub <noreply@w3.org>
- Date: Tue, 12 Aug 2025 15:38:40 +0000
- To: public-css-archive@w3.org
My $0.02 from an implementer's perspective: Selectors can become arbitrarily complex, which makes them expensive for engines to evaluate and hard for authors to reason about. Even with the best efforts of implementors to optimize selector handling, I've seen sites run into performance issues due to unexpectedly large invalidations caused by DOM changes in the presence of certain patterns of selectors. My sense is that using selectors in `animation-trigger` could cause similar issues. If the rationale for using selectors instead of CSS-defined idents is to make it simpler for authors to refer to elements, then allowing authors to specify just an element ID in `animation-trigger` would be less worrisome from a performance perspective. Though I think doing that would run against @nt1m's point about CSS not taking dependencies on host language features. -- GitHub Notification of comment by kbabbitt Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12590#issuecomment-3179898959 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 12 August 2025 15:38:41 UTC