Skip to content

Commit 7c80650

Browse files
saschanazbirtles
authored andcommitted
Add dictionary default values
1 parent cebb998 commit 7c80650

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

web-animations-1/Overview.bs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3960,7 +3960,7 @@ dictionary DocumentTimelineOptions {
39603960
};
39613961

39623962
[Exposed=Window,
3963-
Constructor(optional DocumentTimelineOptions options)]
3963+
Constructor(optional DocumentTimelineOptions options = {})]
39643964
interface DocumentTimeline : AnimationTimeline {
39653965
};
39663966
@@ -4322,7 +4322,7 @@ abstract {{AnimationEffect}} interface.
43224322
interface AnimationEffect {
43234323
EffectTiming getTiming();
43244324
ComputedEffectTiming getComputedTiming();
4325-
void updateTiming(optional OptionalEffectTiming timing);
4325+
void updateTiming(optional OptionalEffectTiming timing = {});
43264326
};
43274327
43284328

@@ -4697,7 +4697,7 @@ dictionary ComputedEffectTiming : EffectTiming {
46974697
[Exposed=Window,
46984698
Constructor((Element or CSSPseudoElement)? target,
46994699
object? keyframes,
4700-
optional (unrestricted double or KeyframeEffectOptions) options),
4700+
optional (unrestricted double or KeyframeEffectOptions) options = {}),
47014701
Constructor(KeyframeEffect source)]
47024702
interface KeyframeEffect : AnimationEffect {
47034703
attribute (Element or CSSPseudoElement)? target;
@@ -5717,8 +5717,8 @@ the {{Animatable}} interface mixin.
57175717
57185718
interface mixin Animatable {
57195719
Animation animate(object? keyframes,
5720-
optional (unrestricted double or KeyframeAnimationOptions) options);
5721-
sequence<Animation> getAnimations(optional GetAnimationsOptions options);
5720+
optional (unrestricted double or KeyframeAnimationOptions) options = {});
5721+
sequence<Animation> getAnimations(optional GetAnimationsOptions options = {});
57225722
};
57235723

57245724
dictionary KeyframeAnimationOptions : KeyframeEffectOptions {
@@ -5932,7 +5932,7 @@ CSSPseudoElement includes Animatable;
59325932

59335933
59345934
[Exposed=Window,
5935-
Constructor(DOMString type, optional AnimationPlaybackEventInit eventInitDict)]
5935+
Constructor(DOMString type, optional AnimationPlaybackEventInit eventInitDict = {})]
59365936
interface AnimationPlaybackEvent : Event {
59375937
readonly attribute double? currentTime;
59385938
readonly attribute double? timelineTime;

0 commit comments

Comments
 (0)