Mirror: CSS prefixing helpers in less than 1KB 馃寛
JavaScript 96.8%
TypeScript 3.2%
3 1 5

Clone this repository

https://tangled.org/kitten.sh/tiny-css-prefixer
git@knot.kitten.sh:kitten.sh/tiny-css-prefixer

For self-hosted knots, clone URLs may differ based on your setup.

README.md

tiny-css-prefixer#

Bare essentials CSS prefixing helpers in less than 1KB 馃寛

version gzip size

Currently supports prefixing properties for most browsers as it makes sense. See SUPPORT.md for more information on which prefixes and transformations have been omitted.

The API is fairly straightforward and only consists of two functions, prefixProperty and prefixValue.

prefixProperty('margin'); // ['margin']
prefixProperty('appearance'); // ['appearance', '-moz-appearance', '-webkit-appearance']

prefixValue('color', 'palevioletred'); // 'palevioletred'
prefixValue('position', 'sticky'); // '-webkit-sticky, sticky'