TIL: While using !important on CSS for a team project is not healthy, using `:not()` on CSS is toxic.

:not() creates infinite possibility of visual regressions, unless the infinity is contained by another rule that governs it.

Basically a double negative with :not():not() should be regarded as a sign that you are not welcomed to contributing to the project until you understand the overall style architecture.

· · Web · 0 · 0 · 0
Sign in to participate in the conversation

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!