Global CSS Variables vs Local Variables in terms of efficiency
问题 Does global variables in CSS are less efficient in terms of memory or in terms of efficiency as local CSS variables? so basically my question is whether there's any benefit of having variable which is declared in the the global scope and can be accessed anywhere in the CSS opposed to variables which are declared within the code block of a particular selector and scoped locally in respect to the selector. when talking about global scope i mean: :root { --mainColor: red } and local scope means: