.class
vs.
:not(.class)
Chained and Grouped
I often found myself overthinking when reaching for chained or grouped
:not()
. So I made this to visualize it.
div:not(.this):not(.that) {
}
Acts like NOR logic gate
no class
.this
.that
.this.that
div:not(.this), div:not(.that) {
}
Acts like NAND logic gate
no class
.this
.that
.this.that