Skip to content

Commit 0a169d8

Browse files
authored
Merge pull request #645 from saschanaz/images
Add CSS Images types
2 parents a80db5c + d008a96 commit 0a169d8

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

baselines/dom.generated.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2603,6 +2603,8 @@ interface CSSStyleDeclaration {
26032603
gridTemplateColumns: string | null;
26042604
gridTemplateRows: string | null;
26052605
height: string | null;
2606+
imageOrientation: string;
2607+
imageRendering: string;
26062608
imeMode: string | null;
26072609
justifyContent: string | null;
26082610
justifyItems: string | null;
@@ -2685,8 +2687,8 @@ interface CSSStyleDeclaration {
26852687
msWrapFlow: string;
26862688
msWrapMargin: any;
26872689
msWrapThrough: string;
2688-
objectFit: string | null;
2689-
objectPosition: string | null;
2690+
objectFit: string;
2691+
objectPosition: string;
26902692
opacity: string | null;
26912693
order: string | null;
26922694
orphans: string | null;

inputfiles/idl/CSS Images.widl

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

inputfiles/idlSources.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
"url": "https://www.w3.org/TR/css-animations-1/",
1313
"title": "CSS Animations"
1414
},
15+
{
16+
"url": "https://drafts.csswg.org/css-images-3/",
17+
"title": "CSS Images"
18+
},
1519
{
1620
"url": "https://drafts.csswg.org/cssom-view/",
1721
"title": "CSSOM View"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"private": true,
44
"scripts": {
55
"build": "tsc --p ./tsconfig.json && node ./lib/index.js",
6-
"fetch-idl": "npm run build && node ./lib/idlfetcher.js",
6+
"fetch-idl": "tsc --p ./tsconfig.json && node ./lib/idlfetcher.js",
77
"fetch-mdn": "npm run build && node ./lib/mdnfetcher.js",
88
"fetch": "echo This could take a few minutes... && npm run fetch-idl && npm run fetch-mdn",
99
"baseline-accept": "cpx \"generated\\*\" baselines\\",

0 commit comments

Comments
 (0)