Skip to content

[web-animations-2] Don't convert mixed times and proportions to proportional. #8086

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions web-animations-2/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -226,18 +226,11 @@ Append:

> Animation effects associated with a [=progress-based timeline=] require their
> timing properties to be converted to proportions. The procedure for converting
> a <dfn lt="time-based animation to a proportional animation"></dfn> is as
> a <dfn>time-based animation to a proportional animation</dfn> is as
> follows:
>
> 1. If the [=iteration duration=] is auto, then perform the following steps.
> * Set [=start delay=] and [=end delay=] to 0, as it is not
> possible to mix time and proportions.
>
> Note: Future versions may allow these properties to be assigned
> percentages, at which point the delays are only to be ignored if
> their values are expressed as times and not as percentages.
>
> Otherwise:
> 1. If the [=iteration duration=], [=start delay=], and [=end delay=] are
> all <<time>> values, then:
> 1. Let <var>total time</var> be equal to [=end time=]
> 1. Set [=start delay=] to be the result of evaluating
> <code>|specified start delay| / |total time| *
Expand All @@ -249,6 +242,11 @@ Append:
> <code>|specified end delay| / |total time| *
> |timeline duration|</code>.
>
> Otherwise:
> * If [=start delay=] is a <<time>>, set it to 0%.
> * If [=end delay=] is a <<time>>, set it to 100%.
> * If [=iteration duration=] is a <<time>>, set it to be auto.
>
> The procedure to <dfn>normalize specified timing</dfn> is as follows:
>
> If [=timeline duration=] is resolved:
Expand Down