Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mohamedkhallouq
GitHub Repository: mohamedkhallouq/content
Path: blob/main/files/en-us/web/css/@media/-webkit-transform-3d/index.md
6512 views
---
title: "-webkit-transform-3d" slug: Web/CSS/@media/-webkit-transform-3d page-type: css-media-feature browser-compat: css.at-rules.media.-webkit-transform-3d
---

{{CSSRef}}

The -webkit-transform-3d Boolean CSS media feature is a WebKit extension whose value is true if vendor-prefixed CSS 3D {{cssxref("transform")}}s are supported.

Note: While this media feature is currently supported by most browsers. If possible, use an {{cssxref("@supports")}} feature query instead.

Syntax

-webkit-transform-3d is a Boolean CSS media feature whose value is true if the browser supports -webkit prefixed CSS 3D {{cssxref("transform")}}s.

Values

  • true

    • : The browser supports the 3D CSS transforms with the -webkit prefix and supports non-standard, prefixed media queries.

  • false

    • : The 3D CSS transforms prefixed with -webkit are not supported by the browser.

Examples

Examples of media queries with -webkit-transform-3d

@media (-webkit-transform-3d) { .foo { transform-style: preserve-3d; } }

A better method for checking for browser support is using a feature query:

@supports (transform-style) { .foo { transform-style: preserve-3d; } }

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also