@supports selector() feature query function

Adds a function that queries whether a user agent supports a selector.

Motivation

Web authors can use this feature to query whether the UA supports the selector before they actually try to apply the specified style rules matching the selector.

Demos

Documentation

Specification

Editor's draft

Status in Chromium

Blink>CSS


Enabled by default (tracking bug) in:

  • Chrome for desktop release 83
  • Chrome for Android release 83
  • Android WebView release 83

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

Owner

Search tags

feature query function, selector,

Last updated on 2020-10-25