Syntax and logic
Ask for capabilities, not browser versions.
Unlike older browser-sniffing techniques, `@supports` checks real capabilities. The base syntax is straightforward: `@supports (property: value) { ... }`.
You can combine conditions with logic operators:
- `and`: both conditions must be true.
- `or`: at least one condition must be true.
- `not`: invert the query, which is useful for unsupported cases.
For example, `@supports (display: grid) and (not (display: subgrid))` can help you apply a normal Grid layout only when `subgrid` is not available.