Limited Availability: Only 3 Project Slots Open for Q2 2026

Apply Now →
Back to Blog
Business 25 Nov 2025 5 min read

Guide To Newly Supported Modern CSS Pseudo-Classes

Explore newly supported CSS pseudo-classes including :has(), :is(), :where(), and :not() - and learn how to use them to write cleaner, more expressive selectors.

David Jones

Frontend Engineer

Guide To Newly Supported Modern CSS Pseudo-Classes

Modern CSS now supports selector patterns that previously required JavaScript. With pseudo-classes like :has(), :is(), :where(), and advanced :not(), teams can simplify component styling, reduce specificity issues, and ship cleaner stylesheets.

Why These Selectors Matter

Historically, many UI states were solved by adding helper classes or writing JavaScript listeners. New selector support shifts that logic back into CSS, where it is easier to reason about and maintain.

That means less DOM manipulation, fewer utility classes, and lower long-term complexity in growing codebases.

Practical Usage Patterns

Use :has() when parent elements should respond to child state, such as highlighting a card when an input is focused.

Use :is() and :where() to group selectors and avoid repeating deeply nested paths. Prefer :where() when you want zero specificity impact.

Use :not() with complex selectors to exclude variants without introducing brittle override chains.

Adoption Checklist

Verify browser support for your audience, keep fallback styles for older environments, and audit specificity after refactors.

Start with low-risk components, then scale usage through your design system tokens and patterns.

Continue Reading

View all posts
How AI is Transforming Modern Web Development

Technology

How AI is Transforming Modern Web Development

Read article
Building Scalable SaaS: Architecture Best Practices

Engineering

Building Scalable SaaS: Architecture Best Practices

Read article