Open nmoucht opened 1 month ago
@flackr @kevers-google @andruud
@flackr can you take a look at this or is there someone else who would be better?
Yes, looks like a typo, should be:
progress = (current - start) / (end - start)
With regard to corresponding scroll offsets. I think we wrote that in one of the issues but can't find it now.
In https://drafts.csswg.org/scroll-animations-1/#view-timeline-progress, it defines the denominator of the progress calculation as
but since the scroll offset of the start cover range is always smaller than for the end cover range, this will result in a negative progress. Shouldn't these be flipped (ie cover range end - cover range start)?