Deze vertaling is niet volledig. Help dit artikel te vertalen vanuit het Engels.

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.

Eigenschappen

The CSS interface is a utility interface and no object of this type can be created: only static methods are defined on it.

Methoden

The CSS interface is a utility interface and no object of this type can be created: only static methods are defined on it.

Statische methoden

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.

Specificaties

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 compabiliteit

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari
Basic support 28.0 (Yes) 22.0 (22.0) [1] 6.0 12.1 Niet ondersteund
escape() 46.0 ? 31.0 (31.0) Niet ondersteund Niet ondersteund Niet ondersteund
Feature Android Edge Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support (Yes) (Yes) 22.0 (22.0)[1] Niet ondersteund 12.1 Niet ondersteund
escape() Niet ondersteund ? 31.0 (31.0) Niet ondersteund Niet ondersteund Niet ondersteund

[1] Was available behind the layout.css.supports-rule.enabled preference since Gecko 20.

Zie ook

Documentlabels en -medewerkers

Aan deze pagina hebben bijgedragen: AdepthShar
Laatst bijgewerkt door: AdepthShar,