Package Exports
- css-vendor
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (css-vendor) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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-transformProperty 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-animationValue 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-flexRun tests
Locally
npm i
open test/local.htmlFrom github
License
MIT