[csswg-drafts] End < Start offset can cause the ScrollTimeline to produce negative time (#4351)

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

== End < Start offset can cause the ScrollTimeline to produce negative time ==
The spec does not require start and end offset to have a strict ordering so it is possible to define 
start offset that is larger than end offset.  This combined with how the current time is computed can lead to a negative current time.

> (current scroll offset - startScrollOffset) / (endScrollOffset - startScrollOffset) × effective time range

A similar concern exists for timeRange which can also be negative.

Is this intentional or should there be more constraints over these values so that currentTime is always guaranteed to be a positive values?

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

Received on Thursday, 19 September 2019 05:42:46 UTC