Functional pseudo-class

noun

say it: “FUNK-shuh-nul SOO-doh klas” /ˈfʌŋkʃənəl ˈsuːdoʊ klæs/

A pseudo-class with parentheses that takes something inside them, a selector list or a pattern, such as :not(), :is(), :where(), :has() and :nth-child().

What is a functional pseudo-class?

A functional pseudo-class takes selectors in brackets, like :is(), :not() or :has().

button:not(:disabled):hover { background: darkblue; }

In a sentence

  • “A functional pseudo-class such as :not() needs something in its parentheses to know what to leave out.”

Level: Freelancer · More CSS terms at this level

Updated