Open Bug 1810248 Opened 3 years ago Updated 2 months ago

[web-animations-2] Extend Animatable interface for timeline ranges

Categories

(Core :: DOM: Animation, defect)

defect
Points:
2

Tracking

()

People

(Reporter: mozilla-apprentice, Unassigned)

References

(Depends on 2 open bugs, Blocks 3 open bugs)

Details

(Whiteboard: [scrollanimation:mvp])

A resolution was made for csswg-drafts/#7589.

[web-animations-2] Web animations API for specifying timeline phases in animation options.

  • RESOLVED: Go with option 2 (object/Typed OM value to specify the phase+offset), details tbd by editors

Discussion.

Blocks: 1810030

Rename this to make it clearer because this is for Animatble interface.

Summary: [web-animations-2] Web animations API for specifying timeline phases in animation options. → [web-animations-2] Extend Animatable interface for timeline ranges
Whiteboard: [scrollanimation:mvp]

To be more clear (https://drafts.csswg.org/web-animations-2/#the-animatable-interface-mixin):

dictionary TimelineRangeOffset {
  CSSOMString? rangeName;
  CSSNumericValue offset;
};

partial dictionary KeyframeAnimationOptions {
    (TimelineRangeOffset or CSSNumericValue or CSSKeywordValue or DOMString) rangeStart = "normal";
    (TimelineRangeOffset or CSSNumericValue or CSSKeywordValue or DOMString) rangeEnd = "normal";
    AnimationTrigger? trigger;
};
Depends on: 2015606

(In reply to Boris Chiou [:boris] from comment #3)

partial dictionary KeyframeAnimationOptions {
    (TimelineRangeOffset or CSSNumericValue or CSSKeywordValue or DOMString) rangeStart = "normal";
    (TimelineRangeOffset or CSSNumericValue or CSSKeywordValue or DOMString) rangeEnd = "normal";
    AnimationTrigger? trigger;
};

Here's where dictionary KeyframeAnimationOptions currently lives in-tree, FWIW (currently with just DOMString id = ""; from web animations spec):

https://searchfox.org/firefox-main/rev/52e25e8bf7d712501f99b8ba77718ea0edc42bd7/dom/webidl/Animatable.webidl#13

Points: --- → 2
You need to log in before you can comment on or make changes to this bug.