Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
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
}
11 changes: 10 additions & 1 deletion inputfiles/patches/cssom.kdl
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,13 @@ interface CSSStyleDeclaration \
forward=CSSStyleDeclarationBase \
forwardExtends=CSSStyleProperties

interface CSSStyleProperties replaceReference=CSSStyleDeclaration
interface CSSStyleProperties replaceReference=CSSStyleDeclaration {
property imageOrientation deprecated=#true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably skip this one. I did this for some reason in 0506730 without a comment (this is why every patch should ideally have a comment 🥹, but presumably it was because of w3c/csswg-drafts@600fd75). But in 2025 all browsers have it and I don't think anyone would unship this.

property wordWrap deprecated=#true

// The corresponding standardized property is not supported by
// anyone as of 2024-10.
property webkitLineClamp deprecated=#false

property cssFloat mdnUrl="https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we lose MDN URL if we skip this one? We have https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleProperties/cssFloat so hopefully not?

}
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