Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add feature for CSS Typed OM #1847

Merged
merged 5 commits into from
Nov 6, 2024
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
138 changes: 138 additions & 0 deletions features/css-typed-om.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
name: CSS typed object model
description: The CSS typed object model allows web developers to programmatically interact with CSS values.
spec: https://drafts.css-houdini.org/css-typed-om-1/
status:
compute_from: api.Element.computedStyleMap
compat_features:
- api.CSSStyleValue
- api.CSSStyleValue.parse_static
- api.CSSStyleValue.parseAll_static
- api.CSSStyleValue.toString
- api.StylePropertyMapReadOnly
- api.StylePropertyMapReadOnly.entries
- api.StylePropertyMapReadOnly.forEach
- api.StylePropertyMapReadOnly.get
- api.StylePropertyMapReadOnly.getAll
- api.StylePropertyMapReadOnly.has
- api.StylePropertyMapReadOnly.keys
- api.StylePropertyMapReadOnly.size
- api.StylePropertyMapReadOnly.values
- api.StylePropertyMapReadOnly.@@iterator
- api.StylePropertyMap
- api.StylePropertyMap.append
- api.StylePropertyMap.clear
- api.StylePropertyMap.delete
- api.StylePropertyMap.set
- api.Element.computedStyleMap
- api.CSSStyleRule.styleMap
- api.HTMLElement.attributeStyleMap
- api.CSSUnparsedValue
- api.CSSUnparsedValue.CSSUnparsedValue
- api.CSSUnparsedValue.entries
- api.CSSUnparsedValue.forEach
- api.CSSUnparsedValue.keys
- api.CSSUnparsedValue.length
- api.CSSUnparsedValue.values
- api.CSSUnparsedValue.@@iterator
- api.CSSVariableReferenceValue
- api.CSSVariableReferenceValue.CSSVariableReferenceValue
- api.CSSVariableReferenceValue.fallback
- api.CSSVariableReferenceValue.variable
- api.CSSKeywordValue
- api.CSSKeywordValue.CSSKeywordValue
- api.CSSKeywordValue.value
- api.CSSNumericValue
- api.CSSNumericValue.add
- api.CSSNumericValue.div
- api.CSSNumericValue.equals
- api.CSSNumericValue.max
- api.CSSNumericValue.min
- api.CSSNumericValue.mul
- api.CSSNumericValue.parse_static
- api.CSSNumericValue.sub
- api.CSSNumericValue.to
- api.CSSNumericValue.toSum
- api.CSSNumericValue.type
- api.CSSUnitValue
- api.CSSUnitValue.CSSUnitValue
- api.CSSUnitValue.unit
- api.CSSUnitValue.value
- api.CSSMathValue
- api.CSSMathValue.operator
- api.CSSMathSum
- api.CSSMathSum.CSSMathSum
- api.CSSMathSum.values
- api.CSSMathProduct
- api.CSSMathProduct.CSSMathProduct
- api.CSSMathProduct.values
- api.CSSMathNegate
- api.CSSMathNegate.CSSMathNegate
- api.CSSMathNegate.value
- api.CSSMathInvert
- api.CSSMathInvert.CSSMathInvert
- api.CSSMathInvert.value
- api.CSSMathMin
- api.CSSMathMin.CSSMathMin
- api.CSSMathMin.values
- api.CSSMathMax
- api.CSSMathMax.CSSMathMax
- api.CSSMathMax.values
- api.CSSMathClamp
- api.CSSMathClamp.CSSMathClamp
- api.CSSMathClamp.lower
- api.CSSMathClamp.upper
- api.CSSMathClamp.value
- api.CSSNumericArray
- api.CSSNumericArray.entries
- api.CSSNumericArray.forEach
- api.CSSNumericArray.keys
- api.CSSNumericArray.length
- api.CSSNumericArray.values
- api.CSSNumericArray.@@iterator
- api.CSSTransformValue
- api.CSSTransformValue.CSSTransformValue
- api.CSSTransformValue.entries
- api.CSSTransformValue.forEach
- api.CSSTransformValue.is2D
- api.CSSTransformValue.keys
- api.CSSTransformValue.length
- api.CSSTransformValue.toMatrix
- api.CSSTransformValue.values
- api.CSSTransformValue.@@iterator
- api.CSSTransformComponent
- api.CSSTransformComponent.is2D
- api.CSSTransformComponent.toMatrix
- api.CSSTransformComponent.toString
- api.CSSTranslate
- api.CSSTranslate.CSSTranslate
- api.CSSTranslate.x
- api.CSSTranslate.y
- api.CSSTranslate.z
- api.CSSRotate
- api.CSSRotate.CSSRotate
- api.CSSRotate.angle
- api.CSSRotate.x
- api.CSSRotate.y
- api.CSSRotate.z
- api.CSSScale
- api.CSSScale.CSSScale
- api.CSSScale.x
- api.CSSScale.y
- api.CSSScale.z
- api.CSSSkew
- api.CSSSkew.CSSSkew
- api.CSSSkew.ax
- api.CSSSkew.ay
- api.CSSSkewX
- api.CSSSkewX.CSSSkewX
- api.CSSSkewX.ax
- api.CSSSkewY
- api.CSSSkewY.CSSSkewY
- api.CSSSkewY.ay
- api.CSSPerspective
- api.CSSPerspective.CSSPerspective
- api.CSSPerspective.length
- api.CSSMatrixComponent
- api.CSSMatrixComponent.CSSMatrixComponent
- api.CSSMatrixComponent.matrix
- api.CSSImageValue
166 changes: 166 additions & 0 deletions features/css-typed-om.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
# Generated from: css-typed-om.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: false
support:
chrome: "66"
chrome_android: "66"
edge: "79"
safari: "16.4"
safari_ios: "16.4"
compat_features:
# ⬇️ Same status as overall feature ⬇️
# baseline: false
# support:
# chrome: "66"
# chrome_android: "66"
# edge: "79"
# safari: "16.4"
# safari_ios: "16.4"
- api.CSSImageValue
- api.CSSKeywordValue
- api.CSSKeywordValue.CSSKeywordValue
- api.CSSKeywordValue.value
- api.CSSMathInvert
- api.CSSMathInvert.CSSMathInvert
- api.CSSMathInvert.value
- api.CSSMathMax
- api.CSSMathMax.values
- api.CSSMathMin
- api.CSSMathMin.values
- api.CSSMathNegate
- api.CSSMathNegate.CSSMathNegate
- api.CSSMathNegate.value
- api.CSSMathProduct
- api.CSSMathProduct.values
- api.CSSMathSum
- api.CSSMathSum.values
- api.CSSMathValue
- api.CSSMathValue.operator
- api.CSSMatrixComponent
- api.CSSMatrixComponent.CSSMatrixComponent
- api.CSSMatrixComponent.matrix
- api.CSSNumericArray
- api.CSSNumericArray.@@iterator
- api.CSSNumericArray.entries
- api.CSSNumericArray.forEach
- api.CSSNumericArray.keys
- api.CSSNumericArray.length
- api.CSSNumericArray.values
- api.CSSNumericValue
- api.CSSNumericValue.add
- api.CSSNumericValue.div
- api.CSSNumericValue.equals
- api.CSSNumericValue.max
- api.CSSNumericValue.min
- api.CSSNumericValue.mul
- api.CSSNumericValue.parse_static
- api.CSSNumericValue.sub
- api.CSSNumericValue.to
- api.CSSNumericValue.toSum
- api.CSSNumericValue.type
- api.CSSPerspective
- api.CSSPerspective.CSSPerspective
- api.CSSPerspective.length
- api.CSSRotate
- api.CSSRotate.CSSRotate
- api.CSSRotate.angle
- api.CSSRotate.x
- api.CSSRotate.y
- api.CSSRotate.z
- api.CSSScale
- api.CSSScale.CSSScale
- api.CSSScale.x
- api.CSSScale.y
- api.CSSScale.z
- api.CSSSkew
- api.CSSSkew.CSSSkew
- api.CSSSkew.ax
- api.CSSSkew.ay
- api.CSSSkewX
- api.CSSSkewX.CSSSkewX
- api.CSSSkewX.ax
- api.CSSSkewY
- api.CSSSkewY.CSSSkewY
- api.CSSSkewY.ay
- api.CSSStyleRule.styleMap
- api.CSSStyleValue
- api.CSSStyleValue.parseAll_static
- api.CSSStyleValue.parse_static
- api.CSSStyleValue.toString
- api.CSSTransformComponent
- api.CSSTransformComponent.is2D
- api.CSSTransformComponent.toMatrix
- api.CSSTransformComponent.toString
- api.CSSTransformValue
- api.CSSTransformValue.@@iterator
- api.CSSTransformValue.CSSTransformValue
- api.CSSTransformValue.entries
- api.CSSTransformValue.forEach
- api.CSSTransformValue.is2D
- api.CSSTransformValue.keys
- api.CSSTransformValue.length
- api.CSSTransformValue.toMatrix
- api.CSSTransformValue.values
- api.CSSTranslate
- api.CSSTranslate.CSSTranslate
- api.CSSTranslate.x
- api.CSSTranslate.y
- api.CSSTranslate.z
- api.CSSUnitValue
- api.CSSUnitValue.CSSUnitValue
- api.CSSUnitValue.unit
- api.CSSUnitValue.value
- api.CSSUnparsedValue
- api.CSSUnparsedValue.@@iterator
- api.CSSUnparsedValue.CSSUnparsedValue
- api.CSSUnparsedValue.entries
- api.CSSUnparsedValue.forEach
- api.CSSUnparsedValue.keys
- api.CSSUnparsedValue.length
- api.CSSUnparsedValue.values
- api.CSSVariableReferenceValue
- api.CSSVariableReferenceValue.CSSVariableReferenceValue
- api.CSSVariableReferenceValue.fallback
- api.CSSVariableReferenceValue.variable
- api.Element.computedStyleMap
- api.HTMLElement.attributeStyleMap
- api.StylePropertyMap
- api.StylePropertyMap.append
- api.StylePropertyMap.clear
- api.StylePropertyMap.delete
- api.StylePropertyMap.set
- api.StylePropertyMapReadOnly
- api.StylePropertyMapReadOnly.@@iterator
- api.StylePropertyMapReadOnly.entries
- api.StylePropertyMapReadOnly.forEach
- api.StylePropertyMapReadOnly.get
- api.StylePropertyMapReadOnly.getAll
- api.StylePropertyMapReadOnly.has
- api.StylePropertyMapReadOnly.keys
- api.StylePropertyMapReadOnly.size
- api.StylePropertyMapReadOnly.values

# baseline: false
# support:
# chrome: "100"
# chrome_android: "100"
# edge: "100"
# safari: "16.4"
# safari_ios: "16.4"
- api.CSSMathClamp
- api.CSSMathClamp.CSSMathClamp
- api.CSSMathClamp.lower
- api.CSSMathClamp.upper
- api.CSSMathClamp.value

# baseline: false
# support:
# chrome: "66"
# chrome_android: "66"
# edge: "79"
- api.CSSMathMax.CSSMathMax
- api.CSSMathMin.CSSMathMin
- api.CSSMathProduct.CSSMathProduct
- api.CSSMathSum.CSSMathSum