logoalt Hacker News

dymktoday at 12:12 AM1 replyview on HN

Personally, I don't think this is a great change to CSS. I prefer being able to grep for identifiers to see where they're used. Now you can't rely on that - maybe a rule is now covered by a prefix selector.


Replies

zetanortoday at 12:19 AM

I suppose someone could have done

  [class^="btn-"], [class*=" btn-"]
which would have equally thrown you off, but I do agree that encouraging this is unfortunate.