This package has been deprecated

Author message:

This fork is deprecated, use official release css-vendor@^2.0.2 instead

@felthy/css-vendor

2.0.2 • Public • Published

Build Status Greenkeeper badge

CSS vendor prefix detection and property feature testing.

Vendor prefixes

console.log(cssVendor.prefix.js) // e.g. WebkitTransform

console.log(cssVendor.prefix.css) // e.g. -webkit-transform

Property support feature test

cssVendor.supportedProperty(prop)

Test if property is supported, returns false if not. Returns string if supported. May add a vendor prefix if needed.

console.log(cssVendor.supportedProperty('animation')) // e.g. -webkit-animation

Value support feature test

cssVendor.supportedValue(prop, value)

Test if value is supported, returns false if not. Returns string if supported. May add a vendor prefix if needed.

console.log(cssVendor.supportedValue('display', 'flex')) // e.g. -webkit-flex

Run tests

yarn
yarn test

License

MIT

Package Sidebar

Install

npm i @felthy/css-vendor

Weekly Downloads

3

Version

2.0.2

License

MIT

Unpacked Size

57.9 kB

Total Files

8

Last publish

Collaborators

  • felthy