autoprefixer 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ChangeLog.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 1.3.1
2
+ * Fix gradient hack, when `background` property contains color.
3
+
1
4
  ## 1.3 “Tenka Fubu”
2
5
  * Add `text-size-adjust` support.
3
6
  * Add `background-size` to support Android 2.
@@ -23,8 +23,7 @@
23
23
  Gradient.names = ['linear-gradient', 'repeating-linear-gradient', 'radial-gradient', 'repeating-radial-gradient'];
24
24
 
25
25
  Gradient.prototype.replace = function(string, prefix) {
26
- var values;
27
- values = list.comma(string).map((function(_this) {
26
+ return list.space(string).map((function(_this) {
28
27
  return function(value) {
29
28
  var after, args, close, params;
30
29
  if (value.slice(0, +_this.name.length + 1 || 9e9) !== _this.name + '(') {
@@ -42,8 +41,7 @@
42
41
  return prefix + _this.name + '(' + params.join(', ') + ')' + after;
43
42
  }
44
43
  };
45
- })(this));
46
- return values.join(', ');
44
+ })(this)).join(' ');
47
45
  };
48
46
 
49
47
  Gradient.prototype.directions = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autoprefixer",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Parse CSS and add vendor prefixes to CSS rules using values from the Can I Use website",
5
5
  "keywords": ["css", "prefix", "postprocessor", "postcss"],
6
6
  "author": "Andrey Sitnik <andrey@sitnik.ru>",