Skip to content

Runtime vendor prefixing based on feature detection.

License

Notifications You must be signed in to change notification settings

cssinjs/css-vendor

Folders and files

NameName
Last commit message
Last commit date
Feb 6, 2019
Nov 3, 2020
Oct 13, 2019
Feb 6, 2019
Jul 19, 2019
Feb 6, 2019
Feb 6, 2019
May 15, 2020
Jan 27, 2020
Nov 16, 2016
Feb 6, 2019
Jun 10, 2019
Oct 3, 2019
Feb 6, 2019
Feb 24, 2021
Jan 27, 2019
Feb 11, 2019
Nov 16, 2016
Jan 2, 2018
Feb 6, 2019
May 9, 2021

Repository files navigation

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