Skip to main
Video
CSS @supports statement

Use new selectors responsibly with selector queries

Just in time for Selectors Level 4

Firefox 69 was the first to implement selector feature queries, but other browsers are following suit. I’ll show you how it works, and how to start using this new feature query right away.

There are many ways to start using a new feature in CSS without waiting for full cross-browser support, but “feature queries” are the most clear and explicit. We can use them to test for browser support, and provide targeted styles only where they are supported. Now we can do the same with new selectors, like ::marker or :focus-visible!

Selector queries allow us to finesse browser-support in new ways

Recent Videos

  1. Title card,
State of CSS Frameworks,
October 2022
    Video post type

    State of CSS Frameworks

    How can we write our styles in style?

    A panel conversation with library and methodology authors and CSS aficionados about recent features added to CSS, developments in how to write more effective, maintainable CSS in small teams and at scale, and what libraries and trends to investigate.

    see all Video posts
  2. Video post type

    Making Sense of CSS Layers and Scope

    CSS is evolving rapidly and new features come online all the time. Join Morten & Miriam to talk about what CSS layers and scope are all about and how they will change how we work with and think about the cascade in the future.

    see all Video posts
  3. Weekly fireside chat:
What's the job of a design engineer?
Featuring Miriam Suzanne
    Video post type

    What’s the job of a “design engineer”?

    A fireside chat

    There are often tall walls between designers and developers, sometimes with only one significant handoff moment during a sprint. We discuss the role of the ‘design engineer’ and what it means for workflows, collab with their product team, and the end-user experience.

    see all Video posts