Re: [csswg-drafts] [web-animations-2][css-animations-2] How should unspecified trigger range boundaries be resolved? (#11932)

While re-reading [the thread that sparked scroll-triggered animations](https://github.com/w3c/csswg-drafts/issues/8942), I noticed this question was also covered in that thread.

See https://github.com/w3c/csswg-drafts/issues/8942#issuecomment-1721492499 and the next few comments.

My first interpretation was that `animation-trigger: view() alternate entry 100%;` would resolve to `animation-trigger: view() alternate entry 100% contain 100%;`.

But then @flackr [clarified](https://github.com/w3c/csswg-drafts/issues/8942#issuecomment-1722260663) that my interpretation was incorrect and that we should expand to “infinite” behavior instead of `contain 100%`.

So using `scroll 100%` here comes closest to this. As this is for the default trigger range, I would assume an omitted `-end` value for the exit trigger range would be `scroll 0%`

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


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

Received on Tuesday, 25 March 2025 09:45:06 UTC