After years working with HTML and CSS, we have come to a surprising conclusion.
Avoid using CSS classes and className and classList when deriving styles based on some “state.” Instead, prefer HTML element attributes, and CSS attribute selectors.
— Me, this week, all the time
Continue reading “Custom Attributes are Fast, Good, and Cheap”