--- title: CSS slug: Web/API/CSS translation_of: Web/API/CSS ---
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.
The CSS interface is a utility interface and no object of this type can be created: only static methods are defined on it.
The CSS interface is a utility interface and no object of this type can be created: only static methods are defined on it.
No inherited static methods.
Specification | Status | Comment |
---|---|---|
{{SpecName('CSSOM', '#the-css.escape%28%29-method', 'CSS')}} | {{Spec2('CSSOM')}} | Adds the escape() static method. |
{{SpecName('CSS3 Conditional', '#the-css-interface', 'CSS')}} | {{Spec2('CSS3 Conditional')}} | Initial definition |
{{CompatibilityTable}}
Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic support | 28.0 | {{CompatVersionUnknown}} | {{CompatGeckoDesktop("22.0")}} [1] | 6.0 | 12.1 | {{CompatNo}} |
escape() {{experimental_inline}} |
46.0 | {{CompatUnknown}} | {{CompatGeckoDesktop("31.0")}} | {{CompatNo}} | {{CompatNo}} | {{CompatNo}} |
Feature | Android | Edge | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} | {{CompatGeckoMobile("22.0")}}[1] | {{CompatNo}} | 12.1 | {{CompatNo}} |
escape() {{experimental_inline}} |
{{CompatNo}} | {{CompatUnknown}} | {{CompatGeckoMobile("31.0")}} | {{CompatNo}} | {{CompatNo}} | {{CompatNo}} |
[1] Was available behind the layout.css.supports-rule.enabled
preference since Gecko 20.