vendor

vendor

Source:

Contains helpers for working with vendor prefixes.

Example

const vendor = postcss.vendor;

Methods

(static) prefix(prop) → {string}

Source:

Returns the vendor prefix extracted from an input string.

Example
postcss.vendor.prefix('-moz-tab-size') //=> '-moz-'
postcss.vendor.prefix('tab-size')      //=> ''
Parameters:
Name Type Description
prop string

string with or without vendor prefix

Returns:

vendor prefix or empty string

Type
string

(static) unprefixed(prop) → {string}

Source:

Returns the input string stripped of its vendor prefix.

Example
postcss.vendor.unprefixed('-moz-tab-size') //=> 'tab-size'
Parameters:
Name Type Description
prop string

string with or without vendor prefix

Returns:

string name without vendor prefixes

Type
string