Skip to content

Commit 04234b7

Browse files
committed
Migrate CSSFontFaceRule and CSSStyleProperties
1 parent 8517969 commit 04234b7

File tree

5 files changed

+19
-37
lines changed

5 files changed

+19
-37
lines changed

inputfiles/addedTypes.jsonc

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -100,18 +100,6 @@
100100
]
101101
}
102102
},
103-
"CSSStyleProperties": {
104-
"properties": {
105-
"property": {
106-
"imageOrientation": {
107-
"deprecated": true
108-
},
109-
"wordWrap": {
110-
"deprecated": true
111-
}
112-
}
113-
}
114-
},
115103
"Window": {
116104
"name": "Window",
117105
"methods": {

inputfiles/overridingTypes.jsonc

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3253,30 +3253,6 @@
32533253
}
32543254
}
32553255
},
3256-
"CSSFontFaceRule": {
3257-
"properties": {
3258-
"property": {
3259-
"style": {
3260-
// CSS Fonts Level 4 now says CSSFontFaceDescriptors but nobody implements it as of 2024-04
3261-
// https://github.com/w3c/csswg-drafts/pull/9686
3262-
"type": "CSSStyleProperties"
3263-
}
3264-
}
3265-
}
3266-
},
3267-
"CSSStyleProperties": {
3268-
"properties": {
3269-
"property": {
3270-
"cssFloat": {
3271-
"mdnUrl": "https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat"
3272-
},
3273-
"webkitLineClamp": {
3274-
// The corresponding standardized property is not supported by anyone as of 2024-10.
3275-
"deprecated": false
3276-
}
3277-
}
3278-
}
3279-
},
32803256
"HTMLMediaElement": {
32813257
"properties": {
32823258
"property": {

inputfiles/patches/css-font.kdl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,10 @@ enum FontDisplay {
1010
dictionary FontFaceDescriptors {
1111
member display type=FontDisplay
1212
}
13+
14+
interface CSSFontFaceRule {
15+
// CSS Fonts Level 4 now says CSSFontFaceDescriptors
16+
// but nobody implements it as of 2024-04
17+
// https://github.com/w3c/csswg-drafts/pull/9686
18+
property style type=CSSStyleProperties
19+
}

inputfiles/patches/cssom.kdl

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,13 @@ interface CSSStyleDeclaration \
66
forward=CSSStyleDeclarationBase \
77
forwardExtends=CSSStyleProperties
88

9-
interface CSSStyleProperties replaceReference=CSSStyleDeclaration
9+
interface CSSStyleProperties replaceReference=CSSStyleDeclaration {
10+
property imageOrientation deprecated=#true
11+
property wordWrap deprecated=#true
12+
13+
// The corresponding standardized property is not supported by
14+
// anyone as of 2024-10.
15+
property webkitLineClamp deprecated=#false
16+
17+
property cssFloat mdnUrl="https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat"
18+
}

src/build/patches.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,8 @@ function handleProperty(child: Node): Partial<Property> {
231231
...optionalMember("overrideType", "string", child.properties?.overrideType),
232232
...optionalMember("type", "string", child.properties?.type),
233233
...optionalMember("readonly", "boolean", child.properties?.readonly),
234+
...optionalMember("deprecated", "boolean", child.properties?.deprecated),
235+
...optionalMember("mdnUrl", "string", child.properties?.mdnUrl),
234236
};
235237
}
236238

0 commit comments

Comments
 (0)