media-feature
webkit transform 2d — CSS reference
Historical WebKit 2D transform capability query. Prefer @supports (transform: translateX(1px)). This fixture compares the media-query result with applied styling in the installed browser. A false match alone is not proof that the syntax is unsupported.
Formal Syntax & Structure
css syntaxcss
@media (-webkit-transform-2d) { … }Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>-webkit-transform-2d</title><style>body{margin:8px;font:16px/20px sans-serif;color:black;background:white}#a{color:green}@media (-webkit-transform-2d){#a{color:blue}}</style><body><p id="a">Example text</p></body></html>