The :root pseudo-class represents an element that is the root of the document. In HTML 4, this is always the HTML element.

:root {
    css declarations;
}
:root {
   color: #3366ff;
   background: #ffff99;
}

Click the button below to experiment with this selector.

Give it a Try!

3.5Firefox 9.0Explorer 4.0Chrome 3.2Safari 9.6Opera