Skip to content

Commit b7e57dd

Browse files
committed
feat: add idl definitions
1 parent fe419f6 commit b7e57dd

File tree

7 files changed

+1070
-0
lines changed

7 files changed

+1070
-0
lines changed

idl/CSS Fonts.idl

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
interface CSSFontFaceRule : CSSRule {
2+
readonly attribute CSSStyleDeclaration style;
3+
};
4+
5+
partial interface CSSStyleDeclaration {
6+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fontFamily;
7+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fontWeight;
8+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fontStretch;
9+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fontStyle;
10+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fontSize;
11+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fontSizeAdjust;
12+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString font;
13+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fontSynthesis;
14+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fontKerning;
15+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fontVariantLigatures;
16+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fontVariantPosition;
17+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fontVariantCaps;
18+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fontVariantNumeric;
19+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fontVariantEastAsian;
20+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fontVariant;
21+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fontFeatureSettings;
22+
};

idl/CSS Text Decoration.idl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
partial interface CSSStyleDeclaration {
2+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textDecorationLine;
3+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textDecorationStyle;
4+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textDecorationColor;
5+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textDecoration;
6+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textUnderlinePosition;
7+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textEmphasisStyle;
8+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textEmphasisColor;
9+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textEmphasis;
10+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textEmphasisPosition;
11+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textShadow;
12+
};

idl/CSS Text.idl

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
partial interface CSSStyleDeclaration {
2+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textTransform;
3+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString whiteSpace;
4+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString tabSize;
5+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString wordBreak;
6+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString lineBreak;
7+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString hyphens;
8+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString overflowWrap;
9+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString wordWrap;
10+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textAlign;
11+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textAlignAll;
12+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textAlignLast;
13+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textJustify;
14+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString wordSpacing;
15+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString letterSpacing;
16+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textIndent;
17+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString hangingPunctuation;
18+
};

idl/CSS Transforms.idl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
partial interface CSSStyleDeclaration {
2+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString transform;
3+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString transformOrigin;
4+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString transformBox;
5+
};

idl/CSS Writing Modes.idl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
partial interface CSSStyleDeclaration {
2+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString direction;
3+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString unicodeBidi;
4+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString writingMode;
5+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textOrientation;
6+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString glyphOrientationVertical;
7+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textCombineUpright;
8+
};

idl/filter-effects.idl

Lines changed: 317 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,317 @@
1+
interface SVGFilterElement : SVGElement {
2+
readonly attribute SVGAnimatedEnumeration filterUnits;
3+
readonly attribute SVGAnimatedEnumeration primitiveUnits;
4+
readonly attribute SVGAnimatedLength x;
5+
readonly attribute SVGAnimatedLength y;
6+
readonly attribute SVGAnimatedLength width;
7+
readonly attribute SVGAnimatedLength height;
8+
};
9+
10+
SVGFilterElement includes SVGURIReference;
11+
12+
interface mixin SVGFilterPrimitiveStandardAttributes {
13+
readonly attribute SVGAnimatedLength x;
14+
readonly attribute SVGAnimatedLength y;
15+
readonly attribute SVGAnimatedLength width;
16+
readonly attribute SVGAnimatedLength height;
17+
readonly attribute SVGAnimatedString result;
18+
};
19+
20+
interface SVGFEBlendElement : SVGElement {
21+
22+
// Blend Mode Types
23+
const unsigned short SVG_FEBLEND_MODE_UNKNOWN = 0;
24+
const unsigned short SVG_FEBLEND_MODE_NORMAL = 1;
25+
const unsigned short SVG_FEBLEND_MODE_MULTIPLY = 2;
26+
const unsigned short SVG_FEBLEND_MODE_SCREEN = 3;
27+
const unsigned short SVG_FEBLEND_MODE_DARKEN = 4;
28+
const unsigned short SVG_FEBLEND_MODE_LIGHTEN = 5;
29+
const unsigned short SVG_FEBLEND_MODE_OVERLAY = 6;
30+
const unsigned short SVG_FEBLEND_MODE_COLOR_DODGE = 7;
31+
const unsigned short SVG_FEBLEND_MODE_COLOR_BURN = 8;
32+
const unsigned short SVG_FEBLEND_MODE_HARD_LIGHT = 9;
33+
const unsigned short SVG_FEBLEND_MODE_SOFT_LIGHT = 10;
34+
const unsigned short SVG_FEBLEND_MODE_DIFFERENCE = 11;
35+
const unsigned short SVG_FEBLEND_MODE_EXCLUSION = 12;
36+
const unsigned short SVG_FEBLEND_MODE_HUE = 13;
37+
const unsigned short SVG_FEBLEND_MODE_SATURATION = 14;
38+
const unsigned short SVG_FEBLEND_MODE_COLOR = 15;
39+
const unsigned short SVG_FEBLEND_MODE_LUMINOSITY = 16;
40+
41+
readonly attribute SVGAnimatedString in1;
42+
readonly attribute SVGAnimatedString in2;
43+
readonly attribute SVGAnimatedEnumeration mode;
44+
};
45+
46+
SVGFEBlendElement includes SVGFilterPrimitiveStandardAttributes;
47+
48+
interface SVGFEColorMatrixElement : SVGElement {
49+
50+
// Color Matrix Types
51+
const unsigned short SVG_FECOLORMATRIX_TYPE_UNKNOWN = 0;
52+
const unsigned short SVG_FECOLORMATRIX_TYPE_MATRIX = 1;
53+
const unsigned short SVG_FECOLORMATRIX_TYPE_SATURATE = 2;
54+
const unsigned short SVG_FECOLORMATRIX_TYPE_HUEROTATE = 3;
55+
const unsigned short SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA = 4;
56+
57+
readonly attribute SVGAnimatedString in1;
58+
readonly attribute SVGAnimatedEnumeration type;
59+
readonly attribute SVGAnimatedNumberList values;
60+
};
61+
62+
SVGFEColorMatrixElement includes SVGFilterPrimitiveStandardAttributes;
63+
64+
interface SVGFEComponentTransferElement : SVGElement {
65+
readonly attribute SVGAnimatedString in1;
66+
};
67+
68+
SVGFEComponentTransferElement includes SVGFilterPrimitiveStandardAttributes;
69+
70+
interface SVGComponentTransferFunctionElement : SVGElement {
71+
72+
// Component Transfer Types
73+
const unsigned short SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN = 0;
74+
const unsigned short SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY = 1;
75+
const unsigned short SVG_FECOMPONENTTRANSFER_TYPE_TABLE = 2;
76+
const unsigned short SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE = 3;
77+
const unsigned short SVG_FECOMPONENTTRANSFER_TYPE_LINEAR = 4;
78+
const unsigned short SVG_FECOMPONENTTRANSFER_TYPE_GAMMA = 5;
79+
80+
readonly attribute SVGAnimatedEnumeration type;
81+
readonly attribute SVGAnimatedNumberList tableValues;
82+
readonly attribute SVGAnimatedNumber slope;
83+
readonly attribute SVGAnimatedNumber intercept;
84+
readonly attribute SVGAnimatedNumber amplitude;
85+
readonly attribute SVGAnimatedNumber exponent;
86+
readonly attribute SVGAnimatedNumber offset;
87+
};
88+
89+
interface SVGFEFuncRElement : SVGComponentTransferFunctionElement {
90+
};
91+
92+
interface SVGFEFuncGElement : SVGComponentTransferFunctionElement {
93+
};
94+
95+
interface SVGFEFuncBElement : SVGComponentTransferFunctionElement {
96+
};
97+
98+
interface SVGFEFuncAElement : SVGComponentTransferFunctionElement {
99+
};
100+
101+
interface SVGFECompositeElement : SVGElement {
102+
103+
// Composite Operators
104+
const unsigned short SVG_FECOMPOSITE_OPERATOR_UNKNOWN = 0;
105+
const unsigned short SVG_FECOMPOSITE_OPERATOR_OVER = 1;
106+
const unsigned short SVG_FECOMPOSITE_OPERATOR_IN = 2;
107+
const unsigned short SVG_FECOMPOSITE_OPERATOR_OUT = 3;
108+
const unsigned short SVG_FECOMPOSITE_OPERATOR_ATOP = 4;
109+
const unsigned short SVG_FECOMPOSITE_OPERATOR_XOR = 5;
110+
const unsigned short SVG_FECOMPOSITE_OPERATOR_ARITHMETIC = 6;
111+
112+
readonly attribute SVGAnimatedString in1;
113+
readonly attribute SVGAnimatedString in2;
114+
readonly attribute SVGAnimatedEnumeration operator;
115+
readonly attribute SVGAnimatedNumber k1;
116+
readonly attribute SVGAnimatedNumber k2;
117+
readonly attribute SVGAnimatedNumber k3;
118+
readonly attribute SVGAnimatedNumber k4;
119+
};
120+
121+
SVGFECompositeElement includes SVGFilterPrimitiveStandardAttributes;
122+
123+
interface SVGFEConvolveMatrixElement : SVGElement {
124+
125+
// Edge Mode Values
126+
const unsigned short SVG_EDGEMODE_UNKNOWN = 0;
127+
const unsigned short SVG_EDGEMODE_DUPLICATE = 1;
128+
const unsigned short SVG_EDGEMODE_WRAP = 2;
129+
const unsigned short SVG_EDGEMODE_NONE = 3;
130+
131+
readonly attribute SVGAnimatedString in1;
132+
readonly attribute SVGAnimatedInteger orderX;
133+
readonly attribute SVGAnimatedInteger orderY;
134+
readonly attribute SVGAnimatedNumberList kernelMatrix;
135+
readonly attribute SVGAnimatedNumber divisor;
136+
readonly attribute SVGAnimatedNumber bias;
137+
readonly attribute SVGAnimatedInteger targetX;
138+
readonly attribute SVGAnimatedInteger targetY;
139+
readonly attribute SVGAnimatedEnumeration edgeMode;
140+
readonly attribute SVGAnimatedNumber kernelUnitLengthX;
141+
readonly attribute SVGAnimatedNumber kernelUnitLengthY;
142+
readonly attribute SVGAnimatedBoolean preserveAlpha;
143+
};
144+
145+
SVGFEConvolveMatrixElement includes SVGFilterPrimitiveStandardAttributes;
146+
147+
interface SVGFEDiffuseLightingElement : SVGElement {
148+
readonly attribute SVGAnimatedString in1;
149+
readonly attribute SVGAnimatedNumber surfaceScale;
150+
readonly attribute SVGAnimatedNumber diffuseConstant;
151+
readonly attribute SVGAnimatedNumber kernelUnitLengthX;
152+
readonly attribute SVGAnimatedNumber kernelUnitLengthY;
153+
};
154+
155+
SVGFEDiffuseLightingElement includes SVGFilterPrimitiveStandardAttributes;
156+
157+
interface SVGFEDistantLightElement : SVGElement {
158+
readonly attribute SVGAnimatedNumber azimuth;
159+
readonly attribute SVGAnimatedNumber elevation;
160+
};
161+
162+
interface SVGFEPointLightElement : SVGElement {
163+
readonly attribute SVGAnimatedNumber x;
164+
readonly attribute SVGAnimatedNumber y;
165+
readonly attribute SVGAnimatedNumber z;
166+
};
167+
168+
interface SVGFESpotLightElement : SVGElement {
169+
readonly attribute SVGAnimatedNumber x;
170+
readonly attribute SVGAnimatedNumber y;
171+
readonly attribute SVGAnimatedNumber z;
172+
readonly attribute SVGAnimatedNumber pointsAtX;
173+
readonly attribute SVGAnimatedNumber pointsAtY;
174+
readonly attribute SVGAnimatedNumber pointsAtZ;
175+
readonly attribute SVGAnimatedNumber specularExponent;
176+
readonly attribute SVGAnimatedNumber limitingConeAngle;
177+
};
178+
179+
interface SVGFEDisplacementMapElement : SVGElement {
180+
181+
// Channel Selectors
182+
const unsigned short SVG_CHANNEL_UNKNOWN = 0;
183+
const unsigned short SVG_CHANNEL_R = 1;
184+
const unsigned short SVG_CHANNEL_G = 2;
185+
const unsigned short SVG_CHANNEL_B = 3;
186+
const unsigned short SVG_CHANNEL_A = 4;
187+
188+
readonly attribute SVGAnimatedString in1;
189+
readonly attribute SVGAnimatedString in2;
190+
readonly attribute SVGAnimatedNumber scale;
191+
readonly attribute SVGAnimatedEnumeration xChannelSelector;
192+
readonly attribute SVGAnimatedEnumeration yChannelSelector;
193+
};
194+
195+
SVGFEDisplacementMapElement includes SVGFilterPrimitiveStandardAttributes;
196+
197+
interface SVGFEDropShadowElement : SVGElement {
198+
readonly attribute SVGAnimatedString in1;
199+
readonly attribute SVGAnimatedNumber dx;
200+
readonly attribute SVGAnimatedNumber dy;
201+
readonly attribute SVGAnimatedNumber stdDeviationX;
202+
readonly attribute SVGAnimatedNumber stdDeviationY;
203+
204+
void setStdDeviation(float stdDeviationX, float stdDeviationY);
205+
};
206+
207+
SVGFEDropShadowElement includes SVGFilterPrimitiveStandardAttributes;
208+
209+
interface SVGFEFloodElement : SVGElement {
210+
};
211+
212+
SVGFEFloodElement includes SVGFilterPrimitiveStandardAttributes;
213+
214+
interface SVGFEGaussianBlurElement : SVGElement {
215+
216+
// Edge Mode Values
217+
const unsigned short SVG_EDGEMODE_UNKNOWN = 0;
218+
const unsigned short SVG_EDGEMODE_DUPLICATE = 1;
219+
const unsigned short SVG_EDGEMODE_WRAP = 2;
220+
const unsigned short SVG_EDGEMODE_NONE = 3;
221+
222+
readonly attribute SVGAnimatedString in1;
223+
readonly attribute SVGAnimatedNumber stdDeviationX;
224+
readonly attribute SVGAnimatedNumber stdDeviationY;
225+
readonly attribute SVGAnimatedEnumeration edgeMode;
226+
227+
void setStdDeviation(float stdDeviationX, float stdDeviationY);
228+
};
229+
230+
SVGFEGaussianBlurElement includes SVGFilterPrimitiveStandardAttributes;
231+
232+
interface SVGFEImageElement : SVGElement {
233+
readonly attribute SVGAnimatedPreserveAspectRatio preserveAspectRatio;
234+
readonly attribute SVGAnimatedString crossOrigin;
235+
};
236+
237+
SVGFEImageElement includes SVGFilterPrimitiveStandardAttributes;
238+
SVGFEImageElement includes SVGURIReference;
239+
240+
interface SVGFEMergeElement : SVGElement {
241+
};
242+
243+
SVGFEMergeElement includes SVGFilterPrimitiveStandardAttributes;
244+
245+
interface SVGFEMergeNodeElement : SVGElement {
246+
readonly attribute SVGAnimatedString in1;
247+
};
248+
249+
interface SVGFEMorphologyElement : SVGElement {
250+
251+
// Morphology Operators
252+
const unsigned short SVG_MORPHOLOGY_OPERATOR_UNKNOWN = 0;
253+
const unsigned short SVG_MORPHOLOGY_OPERATOR_ERODE = 1;
254+
const unsigned short SVG_MORPHOLOGY_OPERATOR_DILATE = 2;
255+
256+
readonly attribute SVGAnimatedString in1;
257+
readonly attribute SVGAnimatedEnumeration operator;
258+
readonly attribute SVGAnimatedNumber radiusX;
259+
readonly attribute SVGAnimatedNumber radiusY;
260+
};
261+
262+
SVGFEMorphologyElement includes SVGFilterPrimitiveStandardAttributes;
263+
264+
interface SVGFEOffsetElement : SVGElement {
265+
readonly attribute SVGAnimatedString in1;
266+
readonly attribute SVGAnimatedNumber dx;
267+
readonly attribute SVGAnimatedNumber dy;
268+
};
269+
270+
SVGFEOffsetElement includes SVGFilterPrimitiveStandardAttributes;
271+
272+
interface SVGFESpecularLightingElement : SVGElement {
273+
readonly attribute SVGAnimatedString in1;
274+
readonly attribute SVGAnimatedNumber surfaceScale;
275+
readonly attribute SVGAnimatedNumber specularConstant;
276+
readonly attribute SVGAnimatedNumber specularExponent;
277+
readonly attribute SVGAnimatedNumber kernelUnitLengthX;
278+
readonly attribute SVGAnimatedNumber kernelUnitLengthY;
279+
};
280+
281+
SVGFESpecularLightingElement includes SVGFilterPrimitiveStandardAttributes;
282+
283+
interface SVGFETileElement : SVGElement {
284+
readonly attribute SVGAnimatedString in1;
285+
};
286+
287+
SVGFETileElement includes SVGFilterPrimitiveStandardAttributes;
288+
289+
interface SVGFETurbulenceElement : SVGElement {
290+
291+
// Turbulence Types
292+
const unsigned short SVG_TURBULENCE_TYPE_UNKNOWN = 0;
293+
const unsigned short SVG_TURBULENCE_TYPE_FRACTALNOISE = 1;
294+
const unsigned short SVG_TURBULENCE_TYPE_TURBULENCE = 2;
295+
296+
// Stitch Options
297+
const unsigned short SVG_STITCHTYPE_UNKNOWN = 0;
298+
const unsigned short SVG_STITCHTYPE_STITCH = 1;
299+
const unsigned short SVG_STITCHTYPE_NOSTITCH = 2;
300+
301+
readonly attribute SVGAnimatedNumber baseFrequencyX;
302+
readonly attribute SVGAnimatedNumber baseFrequencyY;
303+
readonly attribute SVGAnimatedInteger numOctaves;
304+
readonly attribute SVGAnimatedNumber seed;
305+
readonly attribute SVGAnimatedEnumeration stitchTiles;
306+
readonly attribute SVGAnimatedEnumeration type;
307+
};
308+
309+
SVGFETurbulenceElement includes SVGFilterPrimitiveStandardAttributes;
310+
311+
partial interface CSSStyleDeclaration {
312+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString filter;
313+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString floodColor;
314+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString floodOpacity;
315+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString colorInterpolationFilters;
316+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString lightingColor;
317+
};

0 commit comments

Comments
 (0)