[csswg-drafts] [scroll-animations-1] question about progress calculation for a View Timeline (#9193)

ydaniv has just created a new issue for https://github.com/w3c/csswg-drafts:

== [scroll-animations-1] question about progress calculation for a View Timeline ==
In [Calculating Progress for a View Progress Timeline](https://www.w3.org/TR/scroll-animations-1/#view-timeline-progress)  the spec says:

> Progress (the [current time](https://www.w3.org/TR/web-animations-1/#timeline-current-time)) in a [view progress timeline](https://www.w3.org/TR/scroll-animations-1/#view-progress-timelines) is calculated as: distance รท range where:
>
>* distance is the current [scroll offset](https://www.w3.org/TR/css-overflow-3/#scroll-offset) minus the scroll offset corresponding to the start of the [cover](https://www.w3.org/TR/scroll-animations-1/#valdef-animation-timeline-range-cover) range
>
>* range is the [scroll offset](https://www.w3.org/TR/css-overflow-3/#scroll-offset) corresponding to the start of the [cover](https://www.w3.org/TR/scroll-animations-1/#valdef-animation-timeline-range-cover) range minus the scroll offset corresponding to the end of the cover range

So I could be wrong here, but seems to me that instead of using `cover` for defining _distance_ and _range_, it should be something like the "effective range" start/end including start/end inset, for the corresponding start/end definitions above.

FYI @fantasai @flackr 

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9193 using your GitHub account


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

Received on Tuesday, 15 August 2023 14:01:46 UTC