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
The CSS interface is a utility interface and no object of this type can be created: only static methods are defined on it.
Methods
The CSS interface is a utility interface and no object of this type can be created: only static methods are defined on it.
Static methods
No inherited static methods.
CSS.supports()
- Returns a
Boolean
indicating if the pair property-value, or the condition, given in parameter is supported.
CSS.escape()
- Can be used to escape a string mostly for use as part of a CSS selector.
Specifications
Specification | Status | Comment |
---|---|---|
CSS Object Model (CSSOM) The definition of 'CSS' in that specification. |
Working Draft | Adds the escape() static method. |
CSS Conditional Rules Module Level 3 The definition of 'CSS' in that specification. |
Candidate Recommendation | Initial definition |
Browser compatibility
[1] Was available behind the layout.css.supports-rule.enabled
preference since Gecko 20.
See Also
Document Tags and Contributors
Tags:
Contributors to this page:
jameshkramer,
erikadoyle,
hfhchan,
Sebastianz,
fscholz,
Noitidart,
teoli,
ziyunfei,
riginoommen,
kscarfone
Last updated by:
jameshkramer,