You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
rpm-mcarman b9f7ec4306 First Commit 4 vuotta sitten
..
dist First Commit 4 vuotta sitten
lib First Commit 4 vuotta sitten
tests First Commit 4 vuotta sitten
.babelrc First Commit 4 vuotta sitten
.env First Commit 4 vuotta sitten
.eslintrc First Commit 4 vuotta sitten
.npmignore First Commit 4 vuotta sitten
.travis.yml First Commit 4 vuotta sitten
LICENSE First Commit 4 vuotta sitten
browsers.json First Commit 4 vuotta sitten
changelog.md First Commit 4 vuotta sitten
karma.conf.js First Commit 4 vuotta sitten
package.json First Commit 4 vuotta sitten
readme.md First Commit 4 vuotta sitten
tests.html First Commit 4 vuotta sitten
tests.webpack.js First Commit 4 vuotta sitten
webpack.config.js First Commit 4 vuotta sitten

readme.md

Build Status

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

npm i
npm test

License

MIT