Skip to content

Commit c941657

Browse files
committed
[css-animations-2] Convert constructors to constructor operations
1 parent a8eee03 commit c941657

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

css-animations-2/Overview.bs

+14-14
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,13 @@ last) as follows:
164164
of their corresponding <a>owning elements</a>.
165165
With regard to pseudo-elements, the sort order is as follows:
166166
167-
* element
168-
* ::marker
169-
* ::before
170-
* any other pseudo-elements not mentioned specifically in this list,
171-
sorted in ascending order by the Unicode codepoints that make up each selector
172-
* ::after
173-
* element children
167+
* element
168+
* ::marker
169+
* ::before
170+
* any other pseudo-elements not mentioned specifically in this list,
171+
sorted in ascending order by the Unicode codepoints that make up each selector
172+
* ::after
173+
* element children
174174
175175
1. Otherwise, sort <var>A</var> and <var>B</var> based on their position in the
176176
computed value of the 'animation-name' property of the (common) <a>owning
@@ -560,16 +560,17 @@ We need to define a constructor for {{CSSAnimation}}.
560560
Perhaps something like the following:
561561
562562
<pre class="idl">
563-
[Constructor (Animatable? target,
563+
partial interface CSSAnimation {
564+
constructor(Animatable? target,
564565
CSSOMString animationName,
565566
optional (unrestricted double or KeyframeEffectOptions) options,
566-
optional CSSOMString defaultEasing = "ease"),
567-
Constructor (Animatable? target,
567+
optional CSSOMString defaultEasing = "ease");
568+
constructor(Animatable? target,
568569
CSSOMString animationName,
569570
(unrestricted double or KeyframeEffectOptions) options,
570571
CSSOMString defaultEasing,
571-
AnimationTimeline? timeline)]
572-
partial interface CSSAnimation { };
572+
AnimationTimeline? timeline);
573+
};
573574
</pre>
574575
575576
The difficulty is with liveness. The most useful and least magical
@@ -582,9 +583,8 @@ updating the set of keyframes returned by
582583
Something like,
583584
584585
<pre class="idl">
585-
[Exposed=Window,
586-
Constructor (CSSOMString keyframesName, CSSOMString defaultEasing)]
587586
interface CSSKeyframeEffectReadOnly : KeyframeEffectReadOnly {
587+
constructor(CSSOMString keyframesName, CSSOMString defaultEasing);
588588
readonly attribute CSSOMString keyframesName;
589589
readonly attribute CSSOMString defaultEasing;
590590
};

0 commit comments

Comments
 (0)