Skip to content

Commit 35534a9

Browse files
zhangenmingestelle
andauthored
Update specificity explanation for :root pseudo-class (mdn#42224)
* Update specificity explanation for :root pseudo-class Clarified specificity details of the :root pseudo-class. * Update files/en-us/web/css/reference/selectors/_colon_root/index.md --------- Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
1 parent a5070ed commit 35534a9

File tree

1 file changed

+1
-1
lines changed
  • files/en-us/web/css/reference/selectors/_colon_root

1 file changed

+1
-1
lines changed

files/en-us/web/css/reference/selectors/_colon_root/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ browser-compat: css.selectors.root
66
sidebar: cssref
77
---
88

9-
The **`:root`** [CSS](/en-US/docs/Web/CSS) [pseudo-class](/en-US/docs/Web/CSS/Reference/Selectors/Pseudo-classes) matches the root element of a tree representing the document. In HTML, `:root` represents the {{HTMLElement("html")}} element and is identical to the selector `html`, except that its [specificity](/en-US/docs/Web/CSS/Guides/Cascade/Specificity) is higher.
9+
The **`:root`** [CSS](/en-US/docs/Web/CSS) [pseudo-class](/en-US/docs/Web/CSS/Reference/Selectors/Pseudo-classes) matches the root element of a tree representing the document. In HTML, `:root` represents the {{HTMLElement("html")}} element and is identical to the selector `html`, except that its [specificity](/en-US/docs/Web/CSS/Guides/Cascade/Specificity) (0-1-0) is higher than html's (0-0-1).
1010

1111
```css
1212
/* Selects the root element of the document:

0 commit comments

Comments
 (0)