The CSS
interface holds useful CSS-related methods. No object with this interface are implemented: it contains only static methods and therefore is a utilitarian interface.
Properties
No properties, and no inherited properties.
Methods
No methods, and no inherited methods.
Static methods
No inherited static methods.
-
CSS.supports
-
Returns a
Boolean
indicating if the the pair property-value, or the condition, given in parameter is supported.
Specifications
Specification | Status | Comment |
---|---|---|
CSS Conditional Rules Module Level 3 | Candidate Recommendation | Initial definition. |
Browser compatibility
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | 28.0 | 22.0 (22.0) [1] | Not supported | 12.1 | Not supported |
Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | (Yes) | 22.0 (22.0) [1] | Not supported | 12.1 | Not supported |
[1] Was available behind the layout.css.supports-rule.enabled
preference since Gecko 20.