Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

autoprefixer-core

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autoprefixer-core - npm Package Compare versions

Comparing version 5.1.7 to 5.1.8

4

ChangeLog.md

@@ -0,1 +1,5 @@

## 5.1.8
* Fix gradients in `mask` and `mask-image` properties.
* Fix old webkit prefix on some unsupported gradients.
## 5.1.7

@@ -2,0 +6,0 @@ * Fix placeholder selector (by Vincent De Oliveira).

2

data/prefixes.js

@@ -125,3 +125,3 @@ (function() {

return prefix('linear-gradient', 'repeating-linear-gradient', 'radial-gradient', 'repeating-radial-gradient', {
props: ['background', 'background-image', 'border-image', 'list-style', 'list-style-image', 'content'],
props: ['background', 'background-image', 'border-image', 'list-style', 'list-style-image', 'content', 'mask-image', 'mask'],
mistakes: ['-ms-'],

@@ -128,0 +128,0 @@ browsers: browsers

@@ -38,5 +38,3 @@ (function() {

if (prefix === '-webkit- old') {
if (args.indexOf('px') === -1) {
return _this.oldWebkit(value, args, params, after);
}
return _this.oldWebkit(value, args, params, after);
} else {

@@ -92,2 +90,5 @@ _this.convertDirection(params);

Gradient.prototype.oldWebkit = function(value, args, params, after) {
if (args.indexOf('px') !== -1) {
return value;
}
if (this.name !== 'linear-gradient') {

@@ -214,8 +215,12 @@ return value;

Gradient.prototype.add = function(decl, prefix) {
var prop;
prop = decl.prop;
if (prop === 'list-style' || prop === 'list-style-image' || prop === 'content') {
var p;
p = decl.prop;
if (p.indexOf('mask') !== -1) {
if (prefix === '-webkit-' || prefix === '-webkit- old') {
return Gradient.__super__.add.apply(this, arguments);
}
} else if (p === 'list-style' || p === 'list-style-image' || p === 'content') {
if (prefix === '-webkit-' || prefix === '-webkit- old') {
return Gradient.__super__.add.apply(this, arguments);
}
} else {

@@ -222,0 +227,0 @@ return Gradient.__super__.add.apply(this, arguments);

{
"name": "autoprefixer-core",
"version": "5.1.7",
"version": "5.1.8",
"description": "CLI-less core of Autoprefixer to use in plugins",

@@ -21,17 +21,17 @@ "keywords": [

"num2fraction": "~1.0.1",
"caniuse-db": "^1.0.30000078",
"postcss": "~4.0.3"
"caniuse-db": "^1.0.30000106",
"postcss": "~4.0.6"
},
"devDependencies": {
"vinyl-source-stream": "1.0.0",
"vinyl-source-stream": "1.1.0",
"gulp-json-editor": "2.2.1",
"jshint-stylish": "1.0.0",
"jshint-stylish": "1.0.1",
"gulp-replace": "0.5.3",
"gulp-jshint": "1.9.2",
"gulp-jshint": "1.9.4",
"gulp-coffee": "2.3.1",
"gulp-mocha": "2.0.0",
"browserify": "8.1.3",
"fs-extra": "0.16.3",
"should": "5.0.0",
"mocha": "2.1.0",
"browserify": "9.0.3",
"fs-extra": "0.16.5",
"should": "5.2.0",
"mocha": "2.2.1",
"gulp": "3.8.11",

@@ -38,0 +38,0 @@ "coffee-script": "1.9.1"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc