CSS Conditional Rules

CSS Conditional Rules is a CSS module that allows to define a set of rules that will only apply based on the capabilities of the processor or the document the style sheet is being applied to.

Reference

At-rules

Specifications

Specification Status Comment
CSS Conditional Rules Module Level 3 Candidate Recommendation Initial definition

Browser compatibility

@document rule

If you're able to see this, something went wrong on this page.

@import rule

If you're able to see this, something went wrong on this page.

@media rule

If you're able to see this, something went wrong on this page.

@supports rule

If you're able to see this, something went wrong on this page.