Skip to content

Commit c02102f

Browse files
committed
Update KDL to deprecate webkitLineClamp in CSSStyleProperties and enhance TypeScript handling for empty objects
1 parent 359d50d commit c02102f

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

inputfiles/patches/cssom.kdl

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@ interface CSSStyleDeclaration \
88

99
interface CSSStyleProperties replaceReference=CSSStyleDeclaration {
1010
property wordWrap deprecated="The 'wordWrap' property is non-standard and has been replaced by 'overflow-wrap' in modern CSS."
11-
12-
// The corresponding standardized property is not supported by
13-
// anyone as of 2024-10.
14-
property webkitLineClamp supported=#true
11+
}
12+
13+
removals {
14+
interface CSSStyleProperties {
15+
// The corresponding standardized property is not supported by
16+
// anyone as of 2024-10.
17+
property webkitLineClamp deprecated=""
18+
}
1519
}

src/build/patches.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,9 @@ function convertForRemovals(obj: unknown): unknown {
415415
// Replace empty objects with null
416416
return Object.keys(newObj).length === 0 ? null : newObj;
417417
}
418+
if (obj === "") {
419+
return null;
420+
}
418421
return obj;
419422
}
420423

0 commit comments

Comments
 (0)