Skip to content

@supports support with fallbacks #8

@iamnewton

Description

@iamnewton

This rule tests whether a browser supports a feature, then applies the styles for those elements if the condition is met. It's sort of like Modernizr but tailored specially for CSS properties.

/* Check one supported condition */
@supports (display: flex) {
  .module { display: flex; }
}
 /* Check multiple conditions */
@supports (display: flex) and (-webkit-appearance: checkbox) {
  .module { display: flex; }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions