3 ms·
The idea of naming the stuff you use with a "var" keyword as "properties" is really bad.
by marcosdumay 11mo ago
The idea of naming the stuff you use with a "var" keyword as "properties" is really bad.
- 9dev 11mo agoWhy so? By adding --foo: bar to a selector, you’re actually adding a new, custom, property named --foo to it, just as the display in display: block would be another property. It’s not a bad analogy, but how the spec intends it to work.
- marcosdumay 11mo agoIf you don't want people to universally call them "variables", you should use another keyword. Or you can keep the keyword and change the name. Either one is fine, the combination is bad.