Length 11:23Surprising differences in Selector Performance
About this video
Kevin Powell tests how common CSS selectors compare for performance, including class and attribute selectors, comma-separated selectors versus :is(), :where() and :not(), and the universal selector. He explains his test method using browser dev tools and asks whether the differences matter in practice.
What you’ll learn
- Compare the performance of class and attribute selectors in CSS
- Weigh comma-separated selectors against :is(), :where() and :not()
- Judge whether CSS selector performance is worth worrying about










