Re: [csswg-drafts] [scroll-animations] Broader scope of scroll timelines (#7759)

Last added would likely be error prone / a compat risk as it depends on when style updates happen. E.g. if you add a node before the existing nodes have been styled it doesn't keep track of the order the nodes were added in at style time.

Last in defined DOM order is possible as it has a defined answer, but adds non-trivial implementation complexity. When we detect a new timeline we have to determine whether it is earlier or later than the previously defined ones. Similarly when the currently attached timeline is removed we'd have to find the latest previous one to attach to.

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


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

Received on Thursday, 6 April 2023 14:16:46 UTC