Kevin Powell - CommunityKP-C
Kevin Powell - Community•3y ago•
6 replies
Disco

Is there anything wrong with defining custom variables in html instead of :root?

I just think it's neater to make "global variables" in the context of the html selector, but I seem to only ever see examples that use :root. I thought they were the same thing in a web page so why not in html?
Was this page helpful?