chriskirknielsen, 1 month ago @geoff I use :not(#\#) as a specificity hack to avoid using !important, it's a little more aggressive but I try to be careful about using it. Also, unless I'm misunderstanding you, :not() does not behave like :where(), and indeed does add specificity, by the way! a:not(b) has a score of 0,0,2, not 0,0,1: https://polypane.app/css-specificity-calculator/#selector=a%3Anot%28b%29
@geoff I use :not(#\#) as a specificity hack to avoid using !important, it's a little more aggressive but I try to be careful about using it.
:not(#\#)
!important
Also, unless I'm misunderstanding you, :not() does not behave like :where(), and indeed does add specificity, by the way! a:not(b) has a score of 0,0,2, not 0,0,1: https://polypane.app/css-specificity-calculator/#selector=a%3Anot%28b%29
:not()
:where()