Hacker News new | ask | show | jobs
by alberth 1368 days ago
> body :not(:is(h1,h2,h3,h4,h5,h6)) {

That seems both clever and hard to maintain over the long run.

1 comments

What would make it hard to maintain? (honest question, I'm rather ignorant of CSS)
I like my code to be explicit. Meaning, you are clearly defining explicity what you code should DO.

But using the ":not(:set())" operator, you're making your code implicit. Because you're telling your code what NOT to do (and instead rely on defaults or other side effects to define what will happen to your headings line-height).