Re: [csswg-drafts] [scroll-animations-1] JS API for view-timeline-inset (#7748)

> Do we want to allow both versions of input? Is that a thing we can do?

Yup, and I think accepting both is the way to go. 

> My original thought was that startOffset and endOffset would be the effective start/end of the timeline, and incorporate any inset calculations.

People should definitely not need to do things like `inset.split(/\s+/).map(l => CSSNumericValue.parse(l))`, that's very old-CSSOM-y. But it's not always possible to extract start and end offsets, e.g. what happens when `view-timeline-inset: var(--foo);`?

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


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

Received on Wednesday, 2 November 2022 13:22:53 UTC