We're looking for a person or people to help audit MDN to find places we could speed up. Is this you or someone you know? Check out the RFP: https://mzl.la/2IHcMiE

CSS.supports Redirect 1

The CSS.supports() static methods returns a Boolean value indicating if the browser supports a given CSS feature, or not.


boolValue = CSS.supports(propertyName, value);
boolValue = CSS.supports(supportCondition);


There are two distinct sets of parameters. The first one allows to test the support of a pair property-value:

A DOMString containing the name of the CSS property to check.
A DOMString containing the value of the CSS property to check.

The second syntax takes one parameter matching the condition of @supports:

A DOMString containing the condition to check.


result = CSS.supports("text-decoration-style", "blink");
result = CSS.supports("display", "flex");

result = CSS.supports("( transform-origin: 5% 5% )");
result = CSS.supports("( transform-style: preserve ) or ( -moz-transform-style: preserve ) or " +
                      "( -o-transform-style: preserve ) or ( -webkit-transform-style: preserve )" );


Specification Status Comment
CSS Conditional Rules Module Level 3
The definition of 'CSS.supports()' in that specification.
Candidate Recommendation Initial definition.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 28.0 22 (22) [1][bug 779917] Not supported 12.1 Not supported
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support Not supported 22.0 (22) [1] Not supported 12.1 Not supported

[1] Gecko 20 and 21 supported this feature only if the user enables it by setting the config value layout.css.supports-rule.enabled to true.

See also

Document Tags and Contributors

 Last updated by: Sheppy,