16th Jun 2021, 1:06 PM
Genuine Stalwart
Genuine Stalwart - avatar
+ 4
The :root CSS pseudo-class matches the root element of a tree representing the document. In HTML, :root represents the <html> element and is identical to the selector html, except that its specificity is higher. https://developer.mozilla.org/en-US/docs/Web/CSS/:root
16th Jun 2021, 12:59 PM
Genuine Stalwart
Genuine Stalwart - avatar
+ 2
In using :root for color its just for defining variable for all childs. You know, it's "almost" like pouring a can of paint on everything. Now I mean everything. Page elements But in this case, the elements are not painted and are not ranked, they are just ready to get painted
16th Jun 2021, 1:42 PM
CyrusKabir
CyrusKabir - avatar
+ 1
You can use body to No difference
16th Jun 2021, 3:29 PM
Radin Masiha
Radin Masiha - avatar