Skip to content

Commit 858b593

Browse files
authored
Removed bad syntax adding defaults to interface attributes + any instead of dictionaries as attribute types (#11630)
* Removed bad syntax adding defaults to interface attributes * Use any as type for attributes that have dictionary type * Removed nullable from dictionary members in AnimationTriggerOptions
1 parent 23edc01 commit 858b593

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

web-animations-2/Overview.bs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3610,10 +3610,10 @@ interface AnimationTrigger {
36103610
constructor(optional AnimationTriggerOptions options = {});
36113611
attribute AnimationTimeline timeline;
36123612
attribute AnimationTriggerType type;
3613-
attribute (TimelineRangeOffset or CSSNumericValue or CSSKeywordValue or DOMString) rangeStart = "normal";
3614-
attribute (TimelineRangeOffset or CSSNumericValue or CSSKeywordValue or DOMString) rangeEnd = "normal";
3615-
attribute (TimelineRangeOffset or CSSNumericValue or CSSKeywordValue or DOMString) exitRangeStart = "auto";
3616-
attribute (TimelineRangeOffset or CSSNumericValue or CSSKeywordValue or DOMString) exitRangeEnd = "auto";
3613+
attribute any rangeStart;
3614+
attribute any rangeEnd;
3615+
attribute any exitRangeStart;
3616+
attribute any exitRangeEnd;
36173617
};
36183618
</pre>
36193619

@@ -3695,10 +3695,10 @@ interface AnimationTrigger {
36953695
dictionary AnimationTriggerOptions {
36963696
AnimationTimeline? timeline;
36973697
AnimationTriggerType? type = "once";
3698-
(TimelineRangeOffset or CSSNumericValue or CSSKeywordValue or DOMString)? rangeStart = "normal";
3699-
(TimelineRangeOffset or CSSNumericValue or CSSKeywordValue or DOMString)? rangeEnd = "normal";
3700-
(TimelineRangeOffset or CSSNumericValue or CSSKeywordValue or DOMString)? exitRangeStart = "auto";
3701-
(TimelineRangeOffset or CSSNumericValue or CSSKeywordValue or DOMString)? exitRangeEnd = "auto";
3698+
(TimelineRangeOffset or CSSNumericValue or CSSKeywordValue or DOMString) rangeStart = "normal";
3699+
(TimelineRangeOffset or CSSNumericValue or CSSKeywordValue or DOMString) rangeEnd = "normal";
3700+
(TimelineRangeOffset or CSSNumericValue or CSSKeywordValue or DOMString) exitRangeStart = "auto";
3701+
(TimelineRangeOffset or CSSNumericValue or CSSKeywordValue or DOMString) exitRangeEnd = "auto";
37023702
};
37033703
</pre>
37043704

0 commit comments

Comments
 (0)