Skip to content

Commit 0d6f5b1

Browse files
authored
SVGStyleElement implements LinkStyle (#922)
* SVGStyleElement implements LinkStyle * link style override was not necessary, removing * re-add SVGStyleElement disabled property and SVGElementTagNameMap * update baselines folder
1 parent 78a2308 commit 0d6f5b1

File tree

4 files changed

+29
-1
lines changed

4 files changed

+29
-1
lines changed

baselines/dom.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14454,7 +14454,7 @@ declare var SVGStringList: {
1445414454
};
1445514455

1445614456
/** Corresponds to the SVG <style> element. */
14457-
interface SVGStyleElement extends SVGElement {
14457+
interface SVGStyleElement extends SVGElement, LinkStyle {
1445814458
disabled: boolean;
1445914459
media: string;
1446014460
title: string;

inputfiles/addedTypes.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2086,6 +2086,22 @@
20862086
}
20872087
]
20882088
},
2089+
"SVGStyleElement": {
2090+
"properties": {
2091+
"property": {
2092+
"disabled": {
2093+
"name": "disabled",
2094+
"type": "boolean"
2095+
}
2096+
}
2097+
},
2098+
"element": [
2099+
{
2100+
"namespace": "SVG",
2101+
"name": "style"
2102+
}
2103+
]
2104+
},
20892105
"SVGTextElement": {
20902106
"element": [
20912107
{
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[Exposed=Window]
2+
interface SVGStyleElement : SVGElement {
3+
attribute DOMString type;
4+
attribute DOMString media;
5+
attribute DOMString title;
6+
};
7+
8+
SVGStyleElement includes LinkStyle;

inputfiles/idlSources.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,10 @@
486486
"url": "https://www.w3.org/TR/SVG2/text.html",
487487
"title": "SVG - Text"
488488
},
489+
{
490+
"url": "https://www.w3.org/TR/SVG2/styling.html",
491+
"title": "SVG - Style Element"
492+
},
489493
{
490494
"url": "https://w3c.github.io/touch-events/",
491495
"title": "Touch Events"

0 commit comments

Comments
 (0)