How to use the prefix function from postcss

Find comprehensive JavaScript postcss.prefix code examples handpicked from public code repositorys.

33
34
35
36
37
38
39
40
41
42
if (value === decl.value) {
  return "continue";
}

var item = void 0;
var propPrefix = vendor.prefix(prop);

if (propPrefix === '-pie-') {
  return "continue";
}
fork icon0
star icon0
watch icon1

+ 4 other calls in file

373
374
375
376
377
378
379
380
381

Transition.prototype.cleanOtherPrefixes = function cleanOtherPrefixes(params, prefix) {
    var _this3 = this;

    return params.filter(function (param) {
        var current = vendor.prefix(_this3.findProp(param));
        return current === '' || current === prefix;
    });
};
fork icon0
star icon0
watch icon0

111
112
113
114
115
116
117
118
119
120
var prefix = void 0;

if (typeof node._autoprefixerPrefix !== 'undefined') {
    prefix = node._autoprefixerPrefix;
} else if (node.type === 'decl' && node.prop[0] === '-') {
    prefix = vendor.prefix(node.prop);
} else if (node.type === 'root') {
    prefix = false;
} else if (node.type === 'rule' && node.selector.indexOf(':-') !== -1 && /:(-\w+-)/.test(node.selector)) {
    prefix = node.selector.match(/:(-\w+-)/)[1];
fork icon0
star icon0
watch icon0