by @jm3 · aka John Manoogian3

Frequent, bite-size mini-milestone updates as I fast-forward merge* my front-end web development skills up to 2019 levels. Learn more

Use the -root {} CSS pseudo-class

Posted at — Jun 1, 2019

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 :root’s specificity is higher. It’s a good, layout-free place to stash CSS variables.