Skip to content

Commit 58634bf

Browse files
saschanazsandersn
authored andcommitted
add CSS Backgrounds and Borders types (#718)
1 parent f8931bc commit 58634bf

File tree

5 files changed

+126
-43
lines changed

5 files changed

+126
-43
lines changed

baselines/dom.generated.d.ts

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -2741,53 +2741,53 @@ interface CSSStyleDeclaration {
27412741
animationPlayState: string;
27422742
animationTimingFunction: string;
27432743
backfaceVisibility: string | null;
2744-
background: string | null;
2745-
backgroundAttachment: string | null;
2746-
backgroundClip: string | null;
2747-
backgroundColor: string | null;
2748-
backgroundImage: string | null;
2749-
backgroundOrigin: string | null;
2750-
backgroundPosition: string | null;
2751-
backgroundPositionX: string | null;
2752-
backgroundPositionY: string | null;
2753-
backgroundRepeat: string | null;
2754-
backgroundSize: string | null;
2744+
background: string;
2745+
backgroundAttachment: string;
2746+
backgroundClip: string;
2747+
backgroundColor: string;
2748+
backgroundImage: string;
2749+
backgroundOrigin: string;
2750+
backgroundPosition: string;
2751+
backgroundPositionX: string;
2752+
backgroundPositionY: string;
2753+
backgroundRepeat: string;
2754+
backgroundSize: string;
27552755
baselineShift: string | null;
2756-
border: string | null;
2757-
borderBottom: string | null;
2758-
borderBottomColor: string | null;
2759-
borderBottomLeftRadius: string | null;
2760-
borderBottomRightRadius: string | null;
2761-
borderBottomStyle: string | null;
2762-
borderBottomWidth: string | null;
2756+
border: string;
2757+
borderBottom: string;
2758+
borderBottomColor: string;
2759+
borderBottomLeftRadius: string;
2760+
borderBottomRightRadius: string;
2761+
borderBottomStyle: string;
2762+
borderBottomWidth: string;
27632763
borderCollapse: string | null;
2764-
borderColor: string | null;
2765-
borderImage: string | null;
2766-
borderImageOutset: string | null;
2767-
borderImageRepeat: string | null;
2768-
borderImageSlice: string | null;
2769-
borderImageSource: string | null;
2770-
borderImageWidth: string | null;
2771-
borderLeft: string | null;
2772-
borderLeftColor: string | null;
2773-
borderLeftStyle: string | null;
2774-
borderLeftWidth: string | null;
2775-
borderRadius: string | null;
2776-
borderRight: string | null;
2777-
borderRightColor: string | null;
2778-
borderRightStyle: string | null;
2779-
borderRightWidth: string | null;
2764+
borderColor: string;
2765+
borderImage: string;
2766+
borderImageOutset: string;
2767+
borderImageRepeat: string;
2768+
borderImageSlice: string;
2769+
borderImageSource: string;
2770+
borderImageWidth: string;
2771+
borderLeft: string;
2772+
borderLeftColor: string;
2773+
borderLeftStyle: string;
2774+
borderLeftWidth: string;
2775+
borderRadius: string;
2776+
borderRight: string;
2777+
borderRightColor: string;
2778+
borderRightStyle: string;
2779+
borderRightWidth: string;
27802780
borderSpacing: string | null;
2781-
borderStyle: string | null;
2782-
borderTop: string | null;
2783-
borderTopColor: string | null;
2784-
borderTopLeftRadius: string | null;
2785-
borderTopRightRadius: string | null;
2786-
borderTopStyle: string | null;
2787-
borderTopWidth: string | null;
2788-
borderWidth: string | null;
2781+
borderStyle: string;
2782+
borderTop: string;
2783+
borderTopColor: string;
2784+
borderTopLeftRadius: string;
2785+
borderTopRightRadius: string;
2786+
borderTopStyle: string;
2787+
borderTopWidth: string;
2788+
borderWidth: string;
27892789
bottom: string | null;
2790-
boxShadow: string | null;
2790+
boxShadow: string;
27912791
boxSizing: string;
27922792
breakAfter: string | null;
27932793
breakBefore: string | null;
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
partial interface CSSStyleDeclaration {
2+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundPosition;
3+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundPositionX;
4+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundPositionY;
5+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundPositionInline;
6+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundPositionBlock;
7+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundClip;
8+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderTopColor;
9+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderRightColor;
10+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderBottomColor;
11+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderLeftColor;
12+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderColor;
13+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderRadius;
14+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString cornerShape;
15+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString corners;
16+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderLimit;
17+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderClip;
18+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderClipTop;
19+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderClipRight;
20+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderClipBottom;
21+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderClipLeft;
22+
};
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
partial interface CSSStyleDeclaration {
2+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundColor;
3+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundImage;
4+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundRepeat;
5+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundAttachment;
6+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundPosition;
7+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundClip;
8+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundOrigin;
9+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundSize;
10+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString background;
11+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderTopColor;
12+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderRightColor;
13+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderBottomColor;
14+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderLeftColor;
15+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderColor;
16+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderTopStyle;
17+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderRightStyle;
18+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderBottomStyle;
19+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderLeftStyle;
20+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderStyle;
21+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderTopWidth;
22+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderRightWidth;
23+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderBottomWidth;
24+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderLeftWidth;
25+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderWidth;
26+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderTop;
27+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderRight;
28+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderBottom;
29+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderLeft;
30+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString border;
31+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderTopLeftRadius;
32+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderTopRightRadius;
33+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderBottomRightRadius;
34+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderBottomLeftRadius;
35+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderRadius;
36+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderImageSource;
37+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderImageSlice;
38+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderImageWidth;
39+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderImageOutset;
40+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderImageRepeat;
41+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderImage;
42+
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString boxShadow;
43+
};

inputfiles/idlSources.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@
1616
"url": "https://www.w3.org/TR/css-animations-1/",
1717
"title": "CSS Animations"
1818
},
19+
{
20+
"url": "https://www.w3.org/TR/css-backgrounds-3/",
21+
"title": "CSS Backgrounds and Borders"
22+
},
23+
{
24+
"url": "https://drafts.csswg.org/css-backgrounds-4/",
25+
"title": "CSS Backgrounds and Borders Level 4"
26+
},
1927
{
2028
"url": "https://www.w3.org/TR/css-ui-3/",
2129
"title": "CSS Basic User Interface"

inputfiles/removedTypes.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,16 @@
6868
"CSSStyleDeclaration": {
6969
"properties": {
7070
"property": {
71+
"backgroundPositionBlock": null,
72+
"backgroundPositionInline": null,
73+
"borderClip": null,
74+
"borderClipBottom": null,
75+
"borderClipLeft": null,
76+
"borderClipRight": null,
77+
"borderClipTop": null,
78+
"borderLimit": null,
79+
"cornerShape": null,
80+
"corners": null,
7181
"hangingPunctuation": null,
7282
"blockOverflow": null,
7383
"continue": null,

0 commit comments

Comments
 (0)