Hacker News new | ask | show | jobs
by lcnPylGDnU4H9OF 1043 days ago
I assume the author is alluding to a certain blog post. https://alistapart.com/article/axiomatic-css-and-lobotomized...

To the point, the :not(:first-child) option should similarly be able to minimize the total number of rules.

1 comments

`:not(:first-child)` has specificity 0.1.0 that is some orders higher than 0.0.0 of `* + *` (since `:first-child` is a pseudoclass), so you'd have to adjust anything that you'd need to override it with.

Strict equivalent of

    * + *
would be

   :where(:not(:first-child))