Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

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

README.md

isSelectorSupported

Version Badge Build Status License

Feature test CSS selector support

Install

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

npm install @ryanmorr/is-selector-supported

Usage

To use the method, simply provide a string of the CSS selector:

import isSelectorSupported from '@ryanmorr/is-selector-supported';

// Check if the :has() selector is supported
isSelectorSupported(':has(img)');

// Check if the case-insensitive attribute selectors are supported
isSelectorSupported('[foo=bar i]');

// Check if the ::backdrop pseudo-element selector is supported
isSelectorSupported('::backdrop');

License

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

About

Feature test CSS selector support

Topics

Resources

License

Packages

No packages published
You can’t perform that action at this time.