Skip to content

Commit deadcfc

Browse files
committed
add CSS Fill and Stroke types
1 parent dbaff83 commit deadcfc

File tree

4 files changed

+62
-11
lines changed

4 files changed

+62
-11
lines changed

baselines/dom.generated.d.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2821,9 +2821,9 @@ interface CSSStyleDeclaration {
28212821
dominantBaseline: string | null;
28222822
emptyCells: string | null;
28232823
enableBackground: string | null;
2824-
fill: string | null;
2825-
fillOpacity: string | null;
2826-
fillRule: string | null;
2824+
fill: string;
2825+
fillOpacity: string;
2826+
fillRule: string;
28272827
filter: string;
28282828
flex: string;
28292829
flexBasis: string;
@@ -3006,14 +3006,14 @@ interface CSSStyleDeclaration {
30063006
scrollBehavior: string;
30073007
stopColor: string | null;
30083008
stopOpacity: string | null;
3009-
stroke: string | null;
3010-
strokeDasharray: string | null;
3011-
strokeDashoffset: string | null;
3012-
strokeLinecap: string | null;
3013-
strokeLinejoin: string | null;
3014-
strokeMiterlimit: string | null;
3015-
strokeOpacity: string | null;
3016-
strokeWidth: string | null;
3009+
stroke: string;
3010+
strokeDasharray: string;
3011+
strokeDashoffset: string;
3012+
strokeLinecap: string;
3013+
strokeLinejoin: string;
3014+
strokeMiterlimit: string;
3015+
strokeOpacity: string;
3016+
strokeWidth: string;
30173017
tabSize: string;
30183018
tableLayout: string | null;
30193019
textAlign: string;
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
partial interface CSSStyleDeclaration {
2+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fillRule;
3+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fillBreak;
4+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fillColor;
5+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fillImage;
6+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fillOrigin;
7+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fillPosition;
8+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fillSize;
9+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fillRepeat;
10+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fill;
11+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fillOpacity;
12+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString strokeWidth;
13+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString strokeAlign;
14+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString strokeLinecap;
15+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString strokeLinejoin;
16+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString strokeMiterlimit;
17+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString strokeBreak;
18+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString strokeDasharray;
19+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString strokeDashoffset;
20+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString strokeDashCorner;
21+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString strokeDashJustify;
22+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString strokeColor;
23+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString strokeImage;
24+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString strokeOrigin;
25+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString strokePosition;
26+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString strokeSize;
27+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString strokeRepeat;
28+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString stroke;
29+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString strokeOpacity;
30+
};

inputfiles/idlSources.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
"url": "https://www.w3.org/TR/css-align-3/",
3333
"title": "CSS Box Alignment"
3434
},
35+
{
36+
"url": "https://www.w3.org/TR/fill-stroke-3/",
37+
"title": "CSS Fill and Stroke"
38+
},
3539
{
3640
"url": "https://www.w3.org/TR/css-flexbox-1/",
3741
"title": "CSS Flexible Box Layout"

inputfiles/removedTypes.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,13 @@
7878
"borderLimit": null,
7979
"cornerShape": null,
8080
"corners": null,
81+
"fillBreak": null,
82+
"fillColor": null,
83+
"fillImage": null,
84+
"fillOrigin": null,
85+
"fillPosition": null,
86+
"fillRepeat": null,
87+
"fillSize": null,
8188
"hangingPunctuation": null,
8289
"blockOverflow": null,
8390
"continue": null,
@@ -95,6 +102,16 @@
95102
"maxLines": null,
96103
"overflowBlock": null,
97104
"overflowInline": null,
105+
"strokeAlign": null,
106+
"strokeBreak": null,
107+
"strokeColor": null,
108+
"strokeDashCorner": null,
109+
"strokeDashJustify": null,
110+
"strokeImage": null,
111+
"strokeOrigin": null,
112+
"strokePosition": null,
113+
"strokeRepeat": null,
114+
"strokeSize": null,
98115
"textAlignAll": null
99116
}
100117
}

0 commit comments

Comments
 (0)