Re: [csswg-drafts] [scroll-animations-1] View progress contain of a sticky positioned elements on the edges (#8298)

> ok, I understand, here you deliberately put the sticky element at 1st pixel of exit. In that case it's fine. In real life, if that element had a ` box-sizing: border-box` then I'd expect it to stick in `contain`. Otherwise it's fine that it's in `exit`. Also your definition also seems correct, if I understand it correctly, it makes the ranges mutually exclusive and behavior is more predictable.

It's coincident with the exit, there is no border on the subject in the demo so `box-sizing: border-box` wouldn't change anything. I think the updated definition is good as it makes sense that until the element starts exiting we don't start the exit range (and similarly finish the entry range as soon as it finishes entering).

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


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

Received on Wednesday, 5 April 2023 15:57:55 UTC