Skip to content

Commit b0b4495

Browse files
authored
[css-typed-om-1] Align with Web IDL specification (#965)
* [css-typed-om-1] Align with Web IDL specification * [css-typed-om-1] Align with Web IDL specification
1 parent f7fdf4c commit b0b4495

File tree

1 file changed

+41
-41
lines changed

1 file changed

+41
-41
lines changed

css-typed-om/Overview.bs

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -767,9 +767,9 @@ in the same order as the {{CSSStyleRule}} or inline style.
767767
----------------------------------------------
768768

769769
<xmp class='idl'>
770-
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet),
771-
Constructor(sequence<CSSUnparsedSegment> members)]
770+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
772771
interface CSSUnparsedValue : CSSStyleValue {
772+
constructor(sequence<CSSUnparsedSegment> members);
773773
iterable<CSSUnparsedSegment>;
774774
readonly attribute unsigned long length;
775775
getter CSSUnparsedSegment (unsigned long index);
@@ -778,9 +778,9 @@ interface CSSUnparsedValue : CSSStyleValue {
778778

779779
typedef (USVString or CSSVariableReferenceValue) CSSUnparsedSegment;
780780

781-
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet),
782-
Constructor(USVString variable, optional CSSUnparsedValue? fallback = null)]
781+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
783782
interface CSSVariableReferenceValue {
783+
constructor(USVString variable, optional CSSUnparsedValue? fallback = null);
784784
attribute USVString variable;
785785
readonly attribute CSSUnparsedValue? fallback;
786786
};
@@ -874,9 +874,9 @@ of the {{CSSUnparsedValue/[[tokens]]}} internal slot.
874874
{{CSSKeywordValue}} objects represent CSS keywords and other [=identifiers=].
875875

876876
<pre class='idl'>
877-
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet),
878-
Constructor(USVString value)]
877+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
879878
interface CSSKeywordValue : CSSStyleValue {
879+
constructor(USVString value);
880880
attribute USVString value;
881881
};
882882
</pre>
@@ -1935,9 +1935,9 @@ are represented as {{CSSUnitValue}}s.
19351935
</div>
19361936

19371937
<xmp class=idl>
1938-
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet),
1939-
Constructor(double value, USVString unit)]
1938+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
19401939
interface CSSUnitValue : CSSNumericValue {
1940+
constructor(double value, USVString unit);
19411941
attribute double value;
19421942
readonly attribute USVString unit;
19431943
};
@@ -2036,45 +2036,45 @@ interface CSSMathValue : CSSNumericValue {
20362036
readonly attribute CSSMathOperator operator;
20372037
};
20382038

2039-
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet),
2040-
Constructor(CSSNumberish... args)]
2039+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
20412040
interface CSSMathSum : CSSMathValue {
2041+
constructor(CSSNumberish... args);
20422042
readonly attribute CSSNumericArray values;
20432043
};
20442044

2045-
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet),
2046-
Constructor(CSSNumberish... args)]
2045+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
20472046
interface CSSMathProduct : CSSMathValue {
2047+
constructor(CSSNumberish... args);
20482048
readonly attribute CSSNumericArray values;
20492049
};
20502050

2051-
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet),
2052-
Constructor(CSSNumberish arg)]
2051+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
20532052
interface CSSMathNegate : CSSMathValue {
2053+
constructor(CSSNumberish arg);
20542054
readonly attribute CSSNumericValue value;
20552055
};
20562056

2057-
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet),
2058-
Constructor(CSSNumberish arg)]
2057+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
20592058
interface CSSMathInvert : CSSMathValue {
2059+
constructor(CSSNumberish arg);
20602060
readonly attribute CSSNumericValue value;
20612061
};
20622062

2063-
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet),
2064-
Constructor(CSSNumberish... args)]
2063+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
20652064
interface CSSMathMin : CSSMathValue {
2065+
constructor(CSSNumberish... args);
20662066
readonly attribute CSSNumericArray values;
20672067
};
20682068

2069-
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet),
2070-
Constructor(CSSNumberish... args)]
2069+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
20712070
interface CSSMathMax : CSSMathValue {
2071+
constructor(CSSNumberish... args);
20722072
readonly attribute CSSNumericArray values;
20732073
};
20742074

2075-
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet),
2076-
Constructor(CSSNumberish min, CSSNumberish val, CSSNumberish max)]
2075+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
20772076
interface CSSMathClamp : CSSMathValue {
2077+
constructor(CSSNumberish min, CSSNumberish val, CSSNumberish max);
20782078
readonly attribute CSSNumericValue min;
20792079
readonly attribute CSSNumericValue val;
20802080
readonly attribute CSSNumericValue max;
@@ -2339,9 +2339,9 @@ They "contain" one or more {{CSSTransformComponent}}s,
23392339
which represent individual <<transform-function>> values.
23402340

23412341
<xmp class='idl'>
2342-
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet),
2343-
Constructor(sequence<CSSTransformComponent> transforms)]
2342+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
23442343
interface CSSTransformValue : CSSStyleValue {
2344+
constructor(sequence<CSSTransformComponent> transforms);
23452345
iterable<CSSTransformComponent>;
23462346
readonly attribute unsigned long length;
23472347
getter CSSTransformComponent (unsigned long index);
@@ -2439,63 +2439,63 @@ This list is the object's [=values to iterate over=].
24392439
DOMMatrix toMatrix();
24402440
};
24412441

2442-
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet),
2443-
Constructor(CSSNumericValue x, CSSNumericValue y, optional CSSNumericValue z)]
2442+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
24442443
interface CSSTranslate : CSSTransformComponent {
2444+
constructor(CSSNumericValue x, CSSNumericValue y, optional CSSNumericValue z);
24452445
attribute CSSNumericValue x;
24462446
attribute CSSNumericValue y;
24472447
attribute CSSNumericValue z;
24482448
};
24492449

2450-
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet),
2451-
Constructor(CSSNumericValue angle),
2452-
Constructor(CSSNumberish x, CSSNumberish y, CSSNumberish z, CSSNumericValue angle)]
2450+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
24532451
interface CSSRotate : CSSTransformComponent {
2452+
constructor(CSSNumericValue angle);
2453+
constructor(CSSNumberish x, CSSNumberish y, CSSNumberish z, CSSNumericValue angle);
24542454
attribute CSSNumberish x;
24552455
attribute CSSNumberish y;
24562456
attribute CSSNumberish z;
24572457
attribute CSSNumericValue angle;
24582458
};
24592459

2460-
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet),
2461-
Constructor(CSSNumberish x, CSSNumberish y, optional CSSNumberish z)]
2460+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
24622461
interface CSSScale : CSSTransformComponent {
2462+
constructor(CSSNumberish x, CSSNumberish y, optional CSSNumberish z);
24632463
attribute CSSNumberish x;
24642464
attribute CSSNumberish y;
24652465
attribute CSSNumberish z;
24662466
};
24672467

2468-
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet),
2469-
Constructor(CSSNumericValue ax, CSSNumericValue ay)]
2468+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
24702469
interface CSSSkew : CSSTransformComponent {
2470+
constructor(CSSNumericValue ax, CSSNumericValue ay);
24712471
attribute CSSNumericValue ax;
24722472
attribute CSSNumericValue ay;
24732473
};
24742474

2475-
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet),
2476-
Constructor(CSSNumericValue ax)]
2475+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
24772476
interface CSSSkewX : CSSTransformComponent {
2477+
constructor(CSSNumericValue ax);
24782478
attribute CSSNumericValue ax;
24792479
};
24802480

2481-
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet),
2482-
Constructor(CSSNumericValue ay)]
2481+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
24832482
interface CSSSkewY : CSSTransformComponent {
2483+
constructor(CSSNumericValue ay);
24842484
attribute CSSNumericValue ay;
24852485
};
24862486

24872487
/* Note that skew(x,y) is *not* the same as skewX(x) skewY(y),
24882488
thus the separate interfaces for all three. */
24892489

2490-
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet),
2491-
Constructor(CSSNumericValue length)]
2490+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
24922491
interface CSSPerspective : CSSTransformComponent {
2492+
constructor(CSSNumericValue length);
24932493
attribute CSSNumericValue length;
24942494
};
24952495

2496-
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet),
2497-
Constructor(DOMMatrixReadOnly matrix, optional CSSMatrixComponentOptions options = {})]
2496+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
24982497
interface CSSMatrixComponent : CSSTransformComponent {
2498+
constructor(DOMMatrixReadOnly matrix, optional CSSMatrixComponentOptions options = {});
24992499
attribute DOMMatrix matrix;
25002500
};
25012501

0 commit comments

Comments
 (0)