This page is Not Ready

Notice: The WebPlatform project has been discontinued when the Stewards partnership agreement ended in September 2015. This site has been frozen, and the assets we have created will remain.

:root

=

root=

Notes

Remarks

The :root pseudo-class is a structural pseudo-class. Structural pseudo-classes enable selection based on extra information in the document tree that can’t be selected using simple selectors or combinators.

Syntax

selector

root
### Parameters
selector
A CSS simple selector.

Standards information

See also

Related articles

Pseudo-Classes

Selectors

Related pages

Attributions