Use new selectors responsibly with selector queries @MozillaDeveloper
Use new selectors responsibly with selector queries  @MozillaDeveloper
Uploaded November 2019 | Updated September 2026, 2 weeks ago
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! Firefox 69 was the first to implement selector feature queries, but other browsers are following suit. Miriam Suzanne will show you how it works, and how to start using this new feature query right away.

- Firefox 69 Release Notes: developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/69
- MDN: developer.mozilla.org/en-US/docs/Web/CSS/@supports#Testing_for_the_support_of_a_selector
- Caniuse: caniuse.com/#feat=mdn-css_at-rules_supports_selector
- Demos: mozdemos.netlify.com/support-selector

#CSS #featurequeries #miriamsuzanne
Use new selectors responsibly with selector queriesFirefox, Android, and Cross-browser Web Extensions in 2024Mozilla Mythbusters: Separating Fact from FictionCommunity Spotlight: Home AssistantTest for Text Label Issues using the Firefox Accessibility InspectorGoing beyond color contrast - Celebrating global #accessibility awareness day 2023Cache The World - Adventures in A11Y PerformanceCommunity Insights: Best Practices for Open Datasets for LLM trainingYour Computer, Your Models, Your Rules — Transformer LabSUMO Community Virtual Hangouts #2Introducing the Solo ProjectWe Just Updated Underline Styling Together
Mozilla Developer |

Use new selectors responsibly with selector queries

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER