The :root selector allows you to target the highest-level parent element in the DOM, or document tree.
Regardless of the markup language, :root will always select the document’s top-most element in the document tree.
🔔 Subscribe for more videos like this : https://www.youtube.com/c/CodeCanvas?...
#css3 #csstricks #css