|
123456789101112131415161718192021222324252627282930313233343536373839404142 |
- [](https://travis-ci.org/cssinjs/css-vendor)
-
- ## CSS vendor prefix detection and property feature testing.
-
- ### Vendor prefixes
-
- ```javascript
- 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.
-
- ```javascript
- 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.
-
- ```javascript
- console.log(cssVendor.supportedValue('display', 'flex')) // e.g. -webkit-flex
- ```
-
- ## Run tests
-
- ```bash
- npm i
- npm test
- ```
-
- ## License
-
- MIT
|