Files
sousa-gecko/layout/style/crashtests
Boris Chiou 4654effbfa Bug 2022727 - Avoid getting the negative range when normalizing the timing. r=firefox-style-system-reviewers,layout-scroll-driven-animation-reviewers,dshin
The author may specifiy the unexpected animation-range, e.g. 50% 25%,
and this may cause a negative timeline duration. We have to clamp this
value to avoid the negative duration. Also, now its possible to have
zero duration when normalizing the timing parameters, so removing the
assertion.

Also change the default value in `IntervalForTimelineRangeName()` to be
0 because its type is `nscoord`, instead of `float`. We don't have to
worry about this too much because it is just a temporary solution before
we implement all the range keywords.

Differential Revision: https://phabricator.services.mozilla.com/D288017
2026-04-01 21:39:45 +00:00
..