Feature Queries

Download css eBook

Syntax

  • @supports [condition] { /* CSS rules to apply */ }

Parameters

ParameterDetails
(property: value)Evaluates true if the browser can handle the CSS rule. The parenthesis around the rule are required.
andReturns true only if both the previous and next conditions are true.
notNegates the next condition
orReturns true if either the previous or next condition is true.
(...)Groups conditions

Remarks

Feature detection using @supports is supported in Edge, Chrome, Firefox, Opera, and Safari 9 and up.

Related Examples

Stats

60 Contributors: 2
Thursday, November 10, 2016
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook