Re:Modern CSS Code Snippets: Stop writing CSS like it's 2015
by shimman on Monday February 16, 2026 @10:23PM
(#47043351)
Yes, if you remove CSS it does tend to break the CSS.
[ Parent
| on HN ]
Re:Modern CSS Code Snippets: Stop writing CSS like it's 2015
by easyThrowaway on Tuesday February 17, 2026 @05:31AM
(#47045824)
The point isn't simply "class removal affects cascading", but "anything upstream is capable of placing the original content in an unrecoverable state".
Where "anything" could be your framework, your CMS, you or your coworkers a few years after the original CSS has been written and you can't fully remember what ".format-header__nav-wrapper:not(:last-child) .model-header__nav-wrapper:not(:last-child)" is doing.
And yes, that's a real CSS selector from a refactoring job I'm doing right now.