|
|
3 лет назад | |
|---|---|---|
| .. | ||
| dist | 3 лет назад | |
| lib | 3 лет назад | |
| tests | 3 лет назад | |
| .babelrc | 3 лет назад | |
| .env | 3 лет назад | |
| .eslintrc | 3 лет назад | |
| .npmignore | 3 лет назад | |
| .travis.yml | 3 лет назад | |
| LICENSE | 3 лет назад | |
| browsers.json | 3 лет назад | |
| changelog.md | 3 лет назад | |
| karma.conf.js | 3 лет назад | |
| package.json | 3 лет назад | |
| readme.md | 3 лет назад | |
| tests.html | 3 лет назад | |
| tests.webpack.js | 3 лет назад | |
| webpack.config.js | 3 лет назад | |
console.log(cssVendor.prefix.js) // e.g. WebkitTransform
console.log(cssVendor.prefix.css) // e.g. -webkit-transform
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
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
npm i
npm test
MIT