Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Guesses about :not Re: Guesses about :not

#132416
SgtLegend
Member

The` :not` selector works as intended if you assign a context to it, if no context is defined it will attempt to select every element in the DOM. See the following example which shows setting `body` as the context ensures the pseudo selector works as intended.

http://codepen.io/ChrisUpjohn/pen/c46034882595a266ba90b60bba1bac76