Skip to content

Commit 89a1586

Browse files
committed
update SVG spec
1 parent 52e173d commit 89a1586

File tree

2 files changed

+28
-22
lines changed

2 files changed

+28
-22
lines changed

baselines/dom.generated.d.ts

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8843,6 +8843,20 @@ declare var SVGStringList: {
88438843
new (): SVGStringList;
88448844
}
88458845

8846+
interface SVGUnitTypes {
8847+
readonly SVG_UNIT_TYPE_UNKNOWN: number;
8848+
readonly SVG_UNIT_TYPE_USERSPACEONUSE: number;
8849+
readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number;
8850+
}
8851+
8852+
declare var SVGUnitTypes: {
8853+
prototype: SVGUnitTypes;
8854+
new (): SVGUnitTypes;
8855+
readonly SVG_UNIT_TYPE_UNKNOWN: number;
8856+
readonly SVG_UNIT_TYPE_USERSPACEONUSE: number;
8857+
readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number;
8858+
}
8859+
88468860
interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, SVGZoomAndPan, WindowEventHandlers {
88478861
readonly x: SVGAnimatedLength;
88488862
readonly y: SVGAnimatedLength;
@@ -8973,12 +8987,12 @@ declare var SVGUseElement: {
89738987
new (): SVGUseElement;
89748988
}
89758989

8976-
interface SVGElementInstance extends ShadowRoot {
8990+
interface SVGUseElementShadowRoot extends ShadowRoot {
89778991
}
89788992

8979-
declare var SVGElementInstance: {
8980-
prototype: SVGElementInstance;
8981-
new (): SVGElementInstance;
8993+
declare var SVGUseElementShadowRoot: {
8994+
prototype: SVGUseElementShadowRoot;
8995+
new (): SVGUseElementShadowRoot;
89828996
}
89838997

89848998
interface ShadowAnimation extends Animation {
@@ -9417,7 +9431,7 @@ declare var SVGSolidcolorElement: {
94179431
new (): SVGSolidcolorElement;
94189432
}
94199433

9420-
interface SVGGradientElement extends SVGElement, SVGURIReference, SVGUnitTypes {
9434+
interface SVGGradientElement extends SVGElement, SVGURIReference {
94219435
readonly gradientUnits: SVGAnimatedEnumeration;
94229436
readonly gradientTransform: SVGAnimatedTransformList;
94239437
readonly spreadMethod: SVGAnimatedEnumeration;
@@ -9516,7 +9530,7 @@ declare var SVGStopElement: {
95169530
new (): SVGStopElement;
95179531
}
95189532

9519-
interface SVGPatternElement extends SVGElement, SVGFitToViewBox, SVGURIReference, SVGUnitTypes {
9533+
interface SVGPatternElement extends SVGElement, SVGFitToViewBox, SVGURIReference {
95209534
readonly patternUnits: SVGAnimatedEnumeration;
95219535
readonly patternContentUnits: SVGAnimatedEnumeration;
95229536
readonly patternTransform: SVGAnimatedTransformList;
@@ -12007,12 +12021,6 @@ interface ConstrainablePattern {
1200712021
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
1200812022
}
1200912023

12010-
interface SVGUnitTypes {
12011-
readonly SVG_UNIT_TYPE_UNKNOWN: number;
12012-
readonly SVG_UNIT_TYPE_USERSPACEONUSE: number;
12013-
readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number;
12014-
}
12015-
1201612024
interface SVGTests {
1201712025
readonly requiredExtensions: SVGStringList;
1201812026
readonly systemLanguage: SVGStringList;

inputfiles/browser.webidl.xml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8171,6 +8171,13 @@
81718171
<property name="numberOfItems" read-only="1" type="unsigned long"/>
81728172
</properties>
81738173
</interface>
8174+
<interface name="SVGUnitTypes" extends="Object">
8175+
<constants>
8176+
<constant name="SVG_UNIT_TYPE_UNKNOWN" type="unsigned short" value="0"/>
8177+
<constant name="SVG_UNIT_TYPE_USERSPACEONUSE" type="unsigned short" value="1"/>
8178+
<constant name="SVG_UNIT_TYPE_OBJECTBOUNDINGBOX" type="unsigned short" value="2"/>
8179+
</constants>
8180+
</interface>
81748181
<interface name="SVGSVGElement" extends="SVGGraphicsElement">
81758182
<methods>
81768183
<method name="getIntersectionList" type="NodeList">
@@ -8244,7 +8251,7 @@
82448251
</properties>
82458252
<implements>SVGURIReference</implements>
82468253
</interface>
8247-
<interface name="SVGElementInstance" extends="ShadowRoot"/>
8254+
<interface name="SVGUseElementShadowRoot" extends="ShadowRoot"/>
82488255
<interface name="ShadowAnimation" extends="Animation">
82498256
<constructor>
82508257
<param name="source" type="Animation"/>
@@ -8579,7 +8586,6 @@
85798586
<property name="spreadMethod" read-only="1" type="SVGAnimatedEnumeration"/>
85808587
</properties>
85818588
<implements>SVGURIReference</implements>
8582-
<implements>SVGUnitTypes</implements>
85838589
</interface>
85848590
<interface name="SVGLinearGradientElement" extends="SVGGradientElement">
85858591
<properties>
@@ -8619,7 +8625,6 @@
86198625
</properties>
86208626
<implements>SVGFitToViewBox</implements>
86218627
<implements>SVGURIReference</implements>
8622-
<implements>SVGUnitTypes</implements>
86238628
</interface>
86248629
<interface name="SVGHatchElement" extends="SVGElement"/>
86258630
<interface name="SVGHatchpathElement" extends="SVGElement"/>
@@ -11376,13 +11381,6 @@
1137611381
<event name="overconstrained" type="OverconstrainedErrorEvent"/>
1137711382
</events>
1137811383
</interface>
11379-
<interface name="SVGUnitTypes" extends="Object" no-interface-object="1">
11380-
<constants>
11381-
<constant name="SVG_UNIT_TYPE_UNKNOWN" type="unsigned short" value="0"/>
11382-
<constant name="SVG_UNIT_TYPE_USERSPACEONUSE" type="unsigned short" value="1"/>
11383-
<constant name="SVG_UNIT_TYPE_OBJECTBOUNDINGBOX" type="unsigned short" value="2"/>
11384-
</constants>
11385-
</interface>
1138611384
<interface name="SVGTests" extends="Object" no-interface-object="1">
1138711385
<properties>
1138811386
<property name="requiredExtensions" read-only="1" type="SVGStringList"/>

0 commit comments

Comments
 (0)