Path: blob/main/files/en-us/web/css/@media/-webkit-transform-2d/index.md
6517 views
------{{CSSRef}} {{ Non-standard_header }}
Note: All browsers support the
transformproperty without vendor prefixes. Only WebKit (Safari), and not Chromium, based browsers supports the-webkit-transform-2dmedia feature. No browsers supporttransform, without the prefix or2dextension, as a media query. Use the@supports (transform)feature query instead.
The -webkit-transform-2d Boolean CSS media feature is a WebKit extension whose value is true if vendor-prefixed CSS 2D {{cssxref("transform")}}s and non-standard vendor-prefixed media queries are supported.
Apple has a description in Safari CSS Reference.
Syntax
-webkit-transform-2d is a Boolean CSS media feature whose value is true if the browser supports -webkit prefixed CSS 2D {{cssxref("transform")}}s.
Values
true: The browser supports the 2D CSS transforms with the
-webkitprefix.
false: The 2D CSS transforms prefixed with
-webkitare not supported by the browser.
Examples
Basic example
This media feature is only supported by WebKit. The unprefixed transform property is supported in all modern browsers. If possible, use an {{cssxref("@supports")}} feature query instead:
Specifications
Not part of any standard.
Browser compatibility
{{Compat}}
See also
{{cssxref("@media/-webkit-transform-3d", "-webkit-transform-3d")}}
{{cssxref("@media/-webkit-transition", "-webkit-transition")}}
{{cssxref("@media/-webkit-animation", "-webkit-animation")}}
{{cssxref("transform")}} and using CSS transforms
{{cssxref("@media")}} and Using media queries
{{cssxref("@supports")}} and using feature queries