-
toddlibby Looks like
--hue
is getting set on the body element, but--backgroundColor
is being calculated on the :root, and requires access to the hue. It's the DOM/cascade version of "calling a variable before you define it" 🙃
--hue
is getting set on the body element, but --backgroundColor
is being calculated on the :root, and requires access to the hue. It's the DOM/cascade version of "calling a variable before you define it" 🙃