Mirror: CSS prefixing helpers in less than 1KB 馃寛
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

JavaScript 96.8%
TypeScript 3.2%
3 1 5

Clone this repository

https://tangled.org/kitten.sh/tiny-css-prefixer https://tangled.org/did:plc:726afsuwa5x6qaytybar3bfs/tiny-css-prefixer
git@knot.kitten.sh:kitten.sh/tiny-css-prefixer git@knot.kitten.sh:did:plc:726afsuwa5x6qaytybar3bfs/tiny-css-prefixer

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

Download tar.gz
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'