-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CSS 2D/3D transform features (#566)
* Add CSS 2D/3D transform features Because transforms exist in multiple other parts of the platform (DOMMatrix, canvas, SVG) prefix the names with "CSS". * Update transforms2d.yml * Update transforms3d.yml
- Loading branch information
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: 2D transforms | ||
description: The `transform` CSS property and its 2D transform functions allow rotating, scaling, skewing, and translating an element. Arbitrary 2D transforms are also possible using a transformation matrix. | ||
caniuse: transforms2d | ||
spec: https://drafts.csswg.org/css-transforms-1/ | ||
compat_features: | ||
- css.properties.transform | ||
- css.properties.transform-box | ||
- css.properties.transform-origin | ||
- css.types.transform-function | ||
- css.types.transform-function.matrix | ||
- css.types.transform-function.rotate | ||
- css.types.transform-function.scale | ||
- css.types.transform-function.scaleX | ||
- css.types.transform-function.scaleY | ||
- css.types.transform-function.skew | ||
- css.types.transform-function.skewX | ||
- css.types.transform-function.skewY | ||
- css.types.transform-function.translate | ||
- css.types.transform-function.translateX | ||
- css.types.transform-function.translateY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: 3D transforms | ||
description: The `transform` CSS property and its 3D transform functions allow rotations and other transforms in three dimensions, including perspective transforms. | ||
caniuse: transforms3d | ||
spec: https://drafts.csswg.org/css-transforms-2/ | ||
compat_features: | ||
- css.properties.backface-visibility | ||
- css.properties.perspective-origin | ||
- css.properties.perspective-origin.bottom | ||
- css.properties.perspective-origin.center | ||
- css.properties.perspective-origin.left | ||
- css.properties.perspective-origin.right | ||
- css.properties.perspective-origin.top | ||
- css.properties.perspective | ||
- css.properties.perspective.none | ||
- css.properties.transform-style | ||
- css.properties.transform.3d | ||
# https://drafts.csswg.org/css-transforms-2/#three-d-transform-functions | ||
- css.types.transform-function.matrix3d | ||
- css.types.transform-function.translate3d | ||
- css.types.transform-function.translateZ | ||
- css.types.transform-function.scale3d | ||
- css.types.transform-function.scaleZ | ||
- css.types.transform-function.rotate3d | ||
- css.types.transform-function.rotateX | ||
- css.types.transform-function.rotateY | ||
- css.types.transform-function.rotateZ | ||
- css.types.transform-function.perspective |