Want to share your CSS expertise with others? Apply to the MDN Fellowship by April 1! http://mzl.la/MDNFellowship

mozilla

Compare Revisions

:root

Change Revisions

Revision 71148:

Revision 71148 by teoli on

Revision 71149:

Revision 71149 by teoli on

Title:
:root
:root
Slug:
CSS/:root
CSS/:root
Tags:
css, "CSS Reference", Selectors, NeedsMobileBrowserCompatibility
css, "CSS Reference", Selectors, NeedsMobileBrowserCompatibility
Content:

Revision 71148
Revision 71149
n10    <h3 name="Summary">n10    <h3 id="Summary" name="Summary">
n14      The <code>:root</code> <a href="/en/CSS/Pseudo-classes" titn14      The <code>:root</code> <a href="/en/CSS/Pseudo-classes" tit
>le="Pseudo-classes">pseudo-class</a> represents the root element >le="Pseudo-classes">pseudo-class</a> matches the root element of 
>of a tree representing the document. In HTML, <code>:root</code> >a tree representing the document. In HTML, <code>:root</code> rep
>represents the {{ HTMLElement("html") }} element and is identical>resents the {{ HTMLElement("html") }} element and is identical to
> to the selector <code>html</code>, except that its <a href="/en/> the selector <code>html</code>, except that its <a href="/en/CSS
>CSS/Specificity" title="Specificity">specifity</a> is higher.>/Specificity" title="Specificity">specifity</a> is higher.
n16    <h3 class="editable">n16    <h3 class="editable" id="Specifications">
t24    <h3 name="Browser_compatibility">t24    <h3 id="Browser_compatibility" name="Browser_compatibility">

Back to History