News for hackers. Stuff that matters.
Re:Relearn CSS layout by ry_ry on Monday June 17, 2019 @09:08AM (#20202508)
I'm taking about classes with an enforced 1:1 relationship with a DOM node, via a unique computed className.

Since there is no requirement for a cascade for this, you've effectively made an ID out of a class.

All the reasons styling off IDs isn't ideal in the traditional CSS metaphor still apply, specificity, verbose stylesheets, etc. But now it's defined as a class too.

There are no comments on this comment yet.