Skip to content

Commit 1132a9e

Browse files
saschanazsandersn
authored andcommitted
Add CSS Color types (#760)
1 parent b19840b commit 1132a9e

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

baselines/dom.generated.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2825,7 +2825,7 @@ interface CSSStyleDeclaration {
28252825
clip: string;
28262826
clipPath: string;
28272827
clipRule: string;
2828-
color: string | null;
2828+
color: string;
28292829
colorInterpolation: string;
28302830
colorInterpolationFilters: string;
28312831
columnCount: string;
@@ -3002,7 +3002,7 @@ interface CSSStyleDeclaration {
30023002
msWrapThrough: string;
30033003
objectFit: string;
30043004
objectPosition: string;
3005-
opacity: string | null;
3005+
opacity: string;
30063006
order: string;
30073007
orphans: string;
30083008
outline: string;

inputfiles/idl/CSS Color.widl

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

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/css-color-3/",
37+
"title": "CSS Color"
38+
},
3539
{
3640
"url": "https://www.w3.org/TR/fill-stroke-3/",
3741
"title": "CSS Fill and Stroke"

0 commit comments

Comments
 (0)