Skip to content

Commit 4685371

Browse files
Add discouraged cssom interfaces (#2629)
Co-authored-by: Daniel D. Beck <daniel@ddbeck.com>
1 parent a57fbf8 commit 4685371

File tree

3 files changed

+86
-0
lines changed

3 files changed

+86
-0
lines changed
+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CSS object model (DOM level 2)
2+
description: The DOM level 2 style specification defined interfaces to access and modify CSS styles, such as `CSSValue` and `CSSPrimitiveValue`, that were later excluded from the CSS object model.
3+
spec: https://www.w3.org/TR/DOM-Level-2-Style/
4+
group: cssom
5+
discouraged:
6+
according_to:
7+
- https://www.w3.org/TR/DOM-Level-2-Style/#Overview-status
8+
alternatives:
9+
- css-object-model
10+
compat_features:
11+
- api.CSSPrimitiveValue
12+
- api.CSSPrimitiveValue.getCounterValue
13+
- api.CSSPrimitiveValue.getFloatValue
14+
- api.CSSPrimitiveValue.getRGBColorValue
15+
- api.CSSPrimitiveValue.getRectValue
16+
- api.CSSPrimitiveValue.getStringValue
17+
- api.CSSPrimitiveValue.primitiveType
18+
- api.CSSPrimitiveValue.setFloatValue
19+
- api.CSSPrimitiveValue.setStringValue
20+
- api.CSSValue
21+
- api.CSSValue.cssText
22+
- api.CSSValue.cssValueType
23+
- api.CSSValueList
24+
- api.CSSValueList.item
25+
- api.CSSValueList.length
26+
- api.Counter
27+
- api.Counter.identifier
28+
- api.Counter.listStyle
29+
- api.Counter.separator
30+
- api.Rect
31+
- api.Rect.bottom
32+
- api.Rect.left
33+
- api.Rect.right
34+
- api.Rect.top
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Generated from: css-object-model-discouraged.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: false
6+
support:
7+
safari: "10"
8+
safari_ios: "10"
9+
compat_features:
10+
# baseline: false
11+
# support:
12+
# safari: "3"
13+
# safari_ios: "1"
14+
- api.CSSPrimitiveValue
15+
- api.CSSPrimitiveValue.getCounterValue
16+
- api.CSSPrimitiveValue.getFloatValue
17+
- api.CSSPrimitiveValue.getRGBColorValue
18+
- api.CSSPrimitiveValue.getRectValue
19+
- api.CSSPrimitiveValue.getStringValue
20+
- api.CSSPrimitiveValue.setFloatValue
21+
- api.CSSPrimitiveValue.setStringValue
22+
- api.CSSValue
23+
- api.CSSValueList
24+
- api.CSSValueList.item
25+
- api.Counter
26+
- api.Counter.identifier
27+
- api.Counter.listStyle
28+
- api.Counter.separator
29+
- api.Rect
30+
- api.Rect.bottom
31+
- api.Rect.left
32+
- api.Rect.right
33+
- api.Rect.top
34+
35+
# baseline: false
36+
# support:
37+
# safari: "7"
38+
# safari_ios: "7"
39+
- api.CSSPrimitiveValue.primitiveType
40+
- api.CSSValue.cssText
41+
- api.CSSValue.cssValueType
42+
43+
# ⬇️ Same status as overall feature ⬇️
44+
# baseline: false
45+
# support:
46+
# safari: "10"
47+
# safari_ios: "10"
48+
- api.CSSValueList.length

scripts/specs.ts

+4
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ const defaultAllowlist: allowlistItem[] = [
100100
[
101101
"https://github.com/tc39/proposal-import-attributes/tree/abca60286360b47f9a6be25a28f489c2cb157beb",
102102
"Allowed because import assertions were replaced in-place by import attributes. Remove this exception when javascript.statements.import.import_assertions is dropped from BCD in June 2026."
103+
],
104+
[
105+
"https://www.w3.org/TR/DOM-Level-2-Style/",
106+
"Allowed because the css-object-model-discouraged feature points to it."
103107
]
104108
];
105109

0 commit comments

Comments
 (0)