Skip to content

ryanmorr/is-at-rule-supported

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

isAtRuleSupported

Version Badge Build Status License

Feature test support for CSS at-rules

Install

Download the development or minified version, or install via NPM:

npm install @ryanmorr/is-at-rule-supported

Usage

To use the method, simply provide a string of the CSS at-rule:

import isAtRuleSupported from '@ryanmorr/is-at-rule-supported';

// Check if the @keyframes rule supported
isAtRuleSupported('@keyframes');

// Check if the @supports rule supported
isAtRuleSupported('@supports');

License

This project is dedicated to the public domain as described by the Unlicense.

About

Feature test support for CSS at-rules

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published