Re: [csswg-drafts] [scroll-animations-1][css-animations-1] A non-animated "Is in viewport" (#10582)

> Using a layout dependant state in a selector is something that we tried to avoid so far, as to avoid endless loops. This is also why we went with a value-based approach for [`animation-trigger`](https://github.com/w3c/csswg-drafts/issues/8942#issuecomment-1723794817). However, perhaps we could consider this as a further extension for [State Container Queries](https://github.com/w3c/csswg-drafts/blob/main/css-conditional-5/scroll_state_explainer.md)?

Yea that might be a better approach. Though I think endless loops in particular (pseudo-class) selectors are not an essentially different problem from view-timeline endless loops (you animate transform based on `view()` which changes your view-timeline and so forth)

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


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

Received on Thursday, 18 July 2024 07:57:41 UTC