Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6917,7 +6917,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
/**
* The **`cssFloat`** property of the CSSStyleProperties interface returns the CSS float property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat)
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleProperties/cssFloat)
*/
cssFloat: string;
/**
Expand Down Expand Up @@ -7339,7 +7339,6 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
hyphens: string;
/**
* The image-orientation CSS property specifies a layout-independent correction to the orientation of an image.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/image-orientation)
*/
Expand Down
3 changes: 1 addition & 2 deletions baselines/ts5.5/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6907,7 +6907,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
/**
* The **`cssFloat`** property of the CSSStyleProperties interface returns the CSS float property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat)
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleProperties/cssFloat)
*/
cssFloat: string;
/**
Expand Down Expand Up @@ -7329,7 +7329,6 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
hyphens: string;
/**
* The image-orientation CSS property specifies a layout-independent correction to the orientation of an image.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/image-orientation)
*/
Expand Down
3 changes: 1 addition & 2 deletions baselines/ts5.6/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6914,7 +6914,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
/**
* The **`cssFloat`** property of the CSSStyleProperties interface returns the CSS float property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat)
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleProperties/cssFloat)
*/
cssFloat: string;
/**
Expand Down Expand Up @@ -7336,7 +7336,6 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
hyphens: string;
/**
* The image-orientation CSS property specifies a layout-independent correction to the orientation of an image.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/image-orientation)
*/
Expand Down
3 changes: 1 addition & 2 deletions baselines/ts5.9/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6914,7 +6914,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
/**
* The **`cssFloat`** property of the CSSStyleProperties interface returns the CSS float property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat)
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleProperties/cssFloat)
*/
cssFloat: string;
/**
Expand Down Expand Up @@ -7336,7 +7336,6 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
hyphens: string;
/**
* The image-orientation CSS property specifies a layout-independent correction to the orientation of an image.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/image-orientation)
*/
Expand Down
12 changes: 0 additions & 12 deletions inputfiles/addedTypes.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -100,18 +100,6 @@
]
}
},
"CSSStyleProperties": {
"properties": {
"property": {
"imageOrientation": {
"deprecated": true
},
"wordWrap": {
"deprecated": true
}
}
}
},
"Window": {
"name": "Window",
"methods": {
Expand Down
24 changes: 0 additions & 24 deletions inputfiles/overridingTypes.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -3253,30 +3253,6 @@
}
}
},
"CSSFontFaceRule": {
"properties": {
"property": {
"style": {
// CSS Fonts Level 4 now says CSSFontFaceDescriptors but nobody implements it as of 2024-04
// https://github.com/w3c/csswg-drafts/pull/9686
"type": "CSSStyleProperties"
}
}
}
},
"CSSStyleProperties": {
"properties": {
"property": {
"cssFloat": {
"mdnUrl": "https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat"
},
"webkitLineClamp": {
// The corresponding standardized property is not supported by anyone as of 2024-10.
"deprecated": false
}
}
}
},
"HTMLMediaElement": {
"properties": {
"property": {
Expand Down
7 changes: 7 additions & 0 deletions inputfiles/patches/css-font.kdl
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,10 @@ enum FontDisplay {
dictionary FontFaceDescriptors {
member display type=FontDisplay
}

interface CSSFontFaceRule {
// CSS Fonts Level 4 now says CSSFontFaceDescriptors
// but nobody implements it as of 2024-04
// https://github.com/w3c/csswg-drafts/pull/9686
property style type=CSSStyleProperties
}
8 changes: 7 additions & 1 deletion inputfiles/patches/cssom.kdl
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,10 @@ interface CSSStyleDeclaration \
forward=CSSStyleDeclarationBase \
forwardExtends=CSSStyleProperties

interface CSSStyleProperties replaceReference=CSSStyleDeclaration
interface CSSStyleProperties replaceReference=CSSStyleDeclaration {
property wordWrap deprecated=#true

// The corresponding standardized property is not supported by
// anyone as of 2024-10.
property webkitLineClamp deprecated=#false
}
2 changes: 2 additions & 0 deletions src/build/patches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ function handleProperty(child: Node): Partial<Property> {
...optionalMember("overrideType", "string", child.properties?.overrideType),
...optionalMember("type", "string", child.properties?.type),
...optionalMember("readonly", "boolean", child.properties?.readonly),
...optionalMember("deprecated", "boolean", child.properties?.deprecated),
...optionalMember("mdnUrl", "string", child.properties?.mdnUrl),
};
}

Expand Down