非标准
该特性是非标准的,请尽量不要在生产环境中使用它!
CSSMatrix 代表可以用于2D或3D变换的4x4齐次矩阵。据说这个类曾经是 CSS Transitions Module Level 3 的一部分,但在现在的工作草案里不存在 。请使用 DOMMatrix 。
规范
| Specification | Status | Comment |
|---|---|---|
| Web Compatibility Standard WebKitCSSMatrix |
Living Standard | Initial standardization of the WebKit-prefixed version, WebKitCSSMatrix. |
浏览器兼容性
| Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|---|
| Basic support | ? | (Yes) | ? | 10[1] | ? | (Yes)[2] |
| Feature | Android | Edge | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|---|
| 基本支持 | ? | (Yes) | ? | 11[1] | ? | (Yes)[2] |
[1] Internet Explorer 将此 API实现为MSCSSMatrix。在版本11中,加入了别名WebKitCSSMatrix。
[2] WebKit 将此 API实现为WebKitCSSMatrix。