autoprefixer 9.4.2 → 9.4.3

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.
Files changed (43) hide show
  1. package/CHANGELOG.md +6 -2
  2. package/README.md +5 -5
  3. package/lib/at-rule.js +2 -2
  4. package/lib/browsers.js +6 -6
  5. package/lib/declaration.js +26 -26
  6. package/lib/hacks/align-content.js +4 -4
  7. package/lib/hacks/align-items.js +4 -4
  8. package/lib/hacks/align-self.js +6 -6
  9. package/lib/hacks/block-logical.js +2 -2
  10. package/lib/hacks/border-radius.js +2 -2
  11. package/lib/hacks/break-props.js +6 -6
  12. package/lib/hacks/color-adjust.js +2 -2
  13. package/lib/hacks/display-flex.js +6 -6
  14. package/lib/hacks/flex-basis.js +4 -4
  15. package/lib/hacks/flex-direction.js +4 -4
  16. package/lib/hacks/flex-grow.js +2 -2
  17. package/lib/hacks/flex-shrink.js +4 -4
  18. package/lib/hacks/flex.js +4 -4
  19. package/lib/hacks/gradient.js +32 -32
  20. package/lib/hacks/grid-column-align.js +4 -4
  21. package/lib/hacks/grid-row-align.js +4 -4
  22. package/lib/hacks/grid-rows-columns.js +2 -2
  23. package/lib/hacks/grid-start.js +4 -4
  24. package/lib/hacks/grid-utils.js +1 -1
  25. package/lib/hacks/image-rendering.js +8 -8
  26. package/lib/hacks/inline-logical.js +2 -2
  27. package/lib/hacks/justify-content.js +4 -4
  28. package/lib/hacks/mask-border.js +2 -2
  29. package/lib/hacks/order.js +4 -4
  30. package/lib/hacks/overscroll-behavior.js +4 -4
  31. package/lib/hacks/pixelated.js +2 -2
  32. package/lib/hacks/placeholder.js +2 -2
  33. package/lib/hacks/transform-decl.js +6 -6
  34. package/lib/old-selector.js +2 -2
  35. package/lib/prefixer.js +8 -8
  36. package/lib/prefixes.js +18 -18
  37. package/lib/processor.js +28 -16
  38. package/lib/resolution.js +6 -6
  39. package/lib/selector.js +16 -16
  40. package/lib/supports.js +30 -30
  41. package/lib/transition.js +22 -22
  42. package/lib/value.js +12 -12
  43. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,14 +1,18 @@
1
1
  # Change Log
2
2
  This project adheres to [Semantic Versioning](http://semver.org/).
3
3
 
4
+ ## 9.4.3
5
+ * Add warning to force `flex-start` instead of `start` (by Antoine du Hamel).
6
+ * Fix docs (by Christian Oliff).
7
+
4
8
  ## 9.4.2
5
- * Fix Grid autoplacment warning.
9
+ * Fix Grid autoplacement warning.
6
10
 
7
11
  ## 9.4.1
8
12
  * Fix unnecessary Flexbox prefixes in Grid elements.
9
13
 
10
14
  ## 9.4 “Advance Australia”
11
- * Add Grid autoplacment for `-ms-` (by Bogdan Dolin).
15
+ * Add Grid autoplacement for `-ms-` (by Bogdan Dolin).
12
16
  * Improve docs and warnings (by Daniel Tonon).
13
17
  * Remove some unnecessary warnings for Grid (by Andrey Alexandrov).
14
18
 
package/README.md CHANGED
@@ -41,10 +41,10 @@ Twitter account for news and releases: [@autoprefixer].
41
41
  <img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg" alt="Sponsored by Evil Martians" width="236" height="54">
42
42
  </a>
43
43
 
44
- [interactive demo]: http://autoprefixer.github.io/
44
+ [interactive demo]: https://autoprefixer.github.io/
45
45
  [@autoprefixer]: https://twitter.com/autoprefixer
46
46
  [recommended]: https://developers.google.com/web/tools/setup/setup-buildtools#dont_trip_up_with_vendor_prefixes
47
- [Can I Use]: http://caniuse.com/
47
+ [Can I Use]: https://caniuse.com/
48
48
  [cult-img]: http://cultofmartians.com/assets/badges/badge.svg
49
49
  [PostCSS]: https://github.com/postcss/postcss
50
50
  [cult]: http://cultofmartians.com/tasks/autoprefixer-grid.html
@@ -96,7 +96,7 @@ See [Browserslist docs] for queries, browser names, config format, and defaults.
96
96
  [babel-preset-env]: https://github.com/babel/babel/tree/master/packages/babel-preset-env
97
97
  [Best Practices]: https://github.com/browserslist/browserslist#best-practices
98
98
  [Browserslist]: https://github.com/ai/browserslist
99
- [Stylelint]: http://stylelint.io/
99
+ [Stylelint]: https://stylelint.io/
100
100
 
101
101
 
102
102
  ## FAQ
@@ -218,7 +218,7 @@ Developers are often surprised by how few prefixes are required today.
218
218
  If Autoprefixer doesn’t add prefixes to your CSS, check if they’re still
219
219
  required on [Can I Use].
220
220
 
221
- [Can I Use]: http://caniuse.com/
221
+ [Can I Use]: https://caniuse.com/
222
222
 
223
223
 
224
224
  ### Why does Autoprefixer use unprefixed properties in `@-webkit-keyframes`?
@@ -446,7 +446,7 @@ If you can’t move to a build tool, you can use text editor plugins:
446
446
  * [Atom Editor](https://github.com/sindresorhus/atom-autoprefixer)
447
447
  * [Visual Studio](https://github.com/madskristensen/WebCompiler)
448
448
 
449
- [Gulp]: http://gulpjs.com/
449
+ [Gulp]: https://gulpjs.com/
450
450
 
451
451
 
452
452
  ## Warnings
package/lib/at-rule.js CHANGED
@@ -34,11 +34,11 @@ function (_Prefixer) {
34
34
  name: prefixed
35
35
  });
36
36
  return rule.parent.insertBefore(rule, cloned);
37
- };
37
+ }
38
38
  /**
39
39
  * Clone node with prefixes
40
40
  */
41
-
41
+ ;
42
42
 
43
43
  _proto.process = function process(node) {
44
44
  var parent = this.parentPrefix(node);
package/lib/browsers.js CHANGED
@@ -27,11 +27,11 @@ function () {
27
27
  return b.length - a.length;
28
28
  });
29
29
  return this.prefixesCache;
30
- };
30
+ }
31
31
  /**
32
32
  * Check is value contain any possible prefix
33
33
  */
34
-
34
+ ;
35
35
 
36
36
  Browsers.withPrefix = function withPrefix(value) {
37
37
  if (!this.prefixesRegexp) {
@@ -64,11 +64,11 @@ function () {
64
64
  opts.path = this.options.from;
65
65
  opts.env = this.options.env;
66
66
  return browserslist(requirements, opts);
67
- };
67
+ }
68
68
  /**
69
69
  * Return prefix for selected browser
70
70
  */
71
-
71
+ ;
72
72
 
73
73
  _proto.prefix = function prefix(browser) {
74
74
  var _browser$split = browser.split(' '),
@@ -83,11 +83,11 @@ function () {
83
83
  }
84
84
 
85
85
  return "-" + prefix + "-";
86
- };
86
+ }
87
87
  /**
88
88
  * Is browser is selected by requirements
89
89
  */
90
-
90
+ ;
91
91
 
92
92
  _proto.isSelected = function isSelected(browser) {
93
93
  return this.selected.indexOf(browser) !== -1;
@@ -28,27 +28,27 @@ function (_Prefixer) {
28
28
  /* decl */
29
29
  {
30
30
  return true;
31
- };
31
+ }
32
32
  /**
33
33
  * Return prefixed version of property
34
34
  */
35
-
35
+ ;
36
36
 
37
37
  _proto.prefixed = function prefixed(prop, prefix) {
38
38
  return prefix + prop;
39
- };
39
+ }
40
40
  /**
41
41
  * Return unprefixed version of property
42
42
  */
43
-
43
+ ;
44
44
 
45
45
  _proto.normalize = function normalize(prop) {
46
46
  return prop;
47
- };
47
+ }
48
48
  /**
49
49
  * Check `value`, that it contain other prefixes, rather than `prefix`
50
50
  */
51
-
51
+ ;
52
52
 
53
53
  _proto.otherPrefixes = function otherPrefixes(value, prefix) {
54
54
  for (var _iterator = Browsers.prefixes(), _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
@@ -75,20 +75,20 @@ function (_Prefixer) {
75
75
  }
76
76
 
77
77
  return false;
78
- };
78
+ }
79
79
  /**
80
80
  * Set prefix to declaration
81
81
  */
82
-
82
+ ;
83
83
 
84
84
  _proto.set = function set(decl, prefix) {
85
85
  decl.prop = this.prefixed(decl.prop, prefix);
86
86
  return decl;
87
- };
87
+ }
88
88
  /**
89
89
  * Should we use visual cascade for prefixes
90
90
  */
91
-
91
+ ;
92
92
 
93
93
  _proto.needCascade = function needCascade(decl) {
94
94
  if (!decl._autoprefixerCascade) {
@@ -96,11 +96,11 @@ function (_Prefixer) {
96
96
  }
97
97
 
98
98
  return decl._autoprefixerCascade;
99
- };
99
+ }
100
100
  /**
101
101
  * Return maximum length of possible prefixed property
102
102
  */
103
-
103
+ ;
104
104
 
105
105
  _proto.maxPrefixed = function maxPrefixed(prefixes, decl) {
106
106
  if (decl._autoprefixerMax) {
@@ -131,11 +131,11 @@ function (_Prefixer) {
131
131
 
132
132
  decl._autoprefixerMax = max;
133
133
  return decl._autoprefixerMax;
134
- };
134
+ }
135
135
  /**
136
136
  * Calculate indentation to create visual cascade
137
137
  */
138
-
138
+ ;
139
139
 
140
140
  _proto.calcBefore = function calcBefore(prefixes, decl, prefix) {
141
141
  if (prefix === void 0) {
@@ -151,11 +151,11 @@ function (_Prefixer) {
151
151
  }
152
152
 
153
153
  return before;
154
- };
154
+ }
155
155
  /**
156
156
  * Remove visual cascade
157
157
  */
158
-
158
+ ;
159
159
 
160
160
  _proto.restoreBefore = function restoreBefore(decl) {
161
161
  var lines = decl.raw('before').split('\n');
@@ -170,11 +170,11 @@ function (_Prefixer) {
170
170
  });
171
171
  lines[lines.length - 1] = min;
172
172
  decl.raws.before = lines.join('\n');
173
- };
173
+ }
174
174
  /**
175
175
  * Clone and insert new declaration
176
176
  */
177
-
177
+ ;
178
178
 
179
179
  _proto.insert = function insert(decl, prefix, prefixes) {
180
180
  var cloned = this.set(this.clone(decl), prefix);
@@ -192,11 +192,11 @@ function (_Prefixer) {
192
192
  }
193
193
 
194
194
  return decl.parent.insertBefore(decl, cloned);
195
- };
195
+ }
196
196
  /**
197
197
  * Did this declaration has this prefix above
198
198
  */
199
-
199
+ ;
200
200
 
201
201
  _proto.isAlready = function isAlready(decl, prefixed) {
202
202
  var already = this.all.group(decl).up(function (i) {
@@ -210,11 +210,11 @@ function (_Prefixer) {
210
210
  }
211
211
 
212
212
  return already;
213
- };
213
+ }
214
214
  /**
215
215
  * Clone and add prefixes for declaration
216
216
  */
217
-
217
+ ;
218
218
 
219
219
  _proto.add = function add(decl, prefix, prefixes, result) {
220
220
  var prefixed = this.prefixed(decl.prop, prefix);
@@ -224,11 +224,11 @@ function (_Prefixer) {
224
224
  }
225
225
 
226
226
  return this.insert(decl, prefix, prefixes, result);
227
- };
227
+ }
228
228
  /**
229
229
  * Add spaces for visual cascade
230
230
  */
231
-
231
+ ;
232
232
 
233
233
  _proto.process = function process(decl, result) {
234
234
  if (!this.needCascade(decl)) {
@@ -245,11 +245,11 @@ function (_Prefixer) {
245
245
 
246
246
  this.restoreBefore(decl);
247
247
  decl.raws.before = this.calcBefore(prefixes, decl);
248
- };
248
+ }
249
249
  /**
250
250
  * Return list of prefixed properties to clean old prefixes
251
251
  */
252
-
252
+ ;
253
253
 
254
254
  _proto.old = function old(prop, prefix) {
255
255
  return [this.prefixed(prop, prefix)];
@@ -34,19 +34,19 @@ function (_Declaration) {
34
34
  }
35
35
 
36
36
  return _Declaration.prototype.prefixed.call(this, prop, prefix);
37
- };
37
+ }
38
38
  /**
39
39
  * Return property name by final spec
40
40
  */
41
-
41
+ ;
42
42
 
43
43
  _proto.normalize = function normalize() {
44
44
  return 'align-content';
45
- };
45
+ }
46
46
  /**
47
47
  * Change value for 2012 spec and ignore prefix for 2009
48
48
  */
49
-
49
+ ;
50
50
 
51
51
  _proto.set = function set(decl, prefix) {
52
52
  var spec = flexSpec(prefix)[0];
@@ -38,19 +38,19 @@ function (_Declaration) {
38
38
  }
39
39
 
40
40
  return _Declaration.prototype.prefixed.call(this, prop, prefix);
41
- };
41
+ }
42
42
  /**
43
43
  * Return property name by final spec
44
44
  */
45
-
45
+ ;
46
46
 
47
47
  _proto.normalize = function normalize() {
48
48
  return 'align-items';
49
- };
49
+ }
50
50
  /**
51
51
  * Change value for 2009 and 2012 specs
52
52
  */
53
-
53
+ ;
54
54
 
55
55
  _proto.set = function set(decl, prefix) {
56
56
  var spec = flexSpec(prefix)[0];
@@ -25,11 +25,11 @@ function (_Declaration) {
25
25
  return decl.parent && decl.parent.every(function (i) {
26
26
  return !/^grid-/.test(i.prop);
27
27
  });
28
- };
28
+ }
29
29
  /**
30
30
  * Change property name for 2012 specs
31
31
  */
32
-
32
+ ;
33
33
 
34
34
  _proto.prefixed = function prefixed(prop, prefix) {
35
35
  var spec;
@@ -44,19 +44,19 @@ function (_Declaration) {
44
44
  }
45
45
 
46
46
  return _Declaration.prototype.prefixed.call(this, prop, prefix);
47
- };
47
+ }
48
48
  /**
49
49
  * Return property name by final spec
50
50
  */
51
-
51
+ ;
52
52
 
53
53
  _proto.normalize = function normalize() {
54
54
  return 'align-self';
55
- };
55
+ }
56
56
  /**
57
57
  * Change value for 2012 spec and ignore prefix for 2009
58
58
  */
59
-
59
+ ;
60
60
 
61
61
  _proto.set = function set(decl, prefix) {
62
62
  var spec = flexSpec(prefix)[0];
@@ -28,11 +28,11 @@ function (_Declaration) {
28
28
  }
29
29
 
30
30
  return prefix + prop.replace('-block-end', '-after');
31
- };
31
+ }
32
32
  /**
33
33
  * Return property name by spec
34
34
  */
35
-
35
+ ;
36
36
 
37
37
  _proto.normalize = function normalize(prop) {
38
38
  if (prop.indexOf('-before') !== -1) {
@@ -28,11 +28,11 @@ function (_Declaration) {
28
28
  }
29
29
 
30
30
  return _Declaration.prototype.prefixed.call(this, prop, prefix);
31
- };
31
+ }
32
32
  /**
33
33
  * Return unprefixed version of property
34
34
  */
35
-
35
+ ;
36
36
 
37
37
  _proto.normalize = function normalize(prop) {
38
38
  return BorderRadius.toNormal[prop] || prop;
@@ -24,11 +24,11 @@ function (_Declaration) {
24
24
  */
25
25
  _proto.prefixed = function prefixed(prop, prefix) {
26
26
  return prefix + "column-" + prop;
27
- };
27
+ }
28
28
  /**
29
29
  * Return property name by final spec
30
30
  */
31
-
31
+ ;
32
32
 
33
33
  _proto.normalize = function normalize(prop) {
34
34
  if (prop.indexOf('inside') !== -1) {
@@ -40,11 +40,11 @@ function (_Declaration) {
40
40
  }
41
41
 
42
42
  return 'break-after';
43
- };
43
+ }
44
44
  /**
45
45
  * Change prefixed value for avoid-column and avoid-page
46
46
  */
47
-
47
+ ;
48
48
 
49
49
  _proto.set = function set(decl, prefix) {
50
50
  if (decl.prop === 'break-inside' && decl.value === 'avoid-column' || decl.value === 'avoid-page') {
@@ -52,11 +52,11 @@ function (_Declaration) {
52
52
  }
53
53
 
54
54
  return _Declaration.prototype.set.call(this, decl, prefix);
55
- };
55
+ }
56
56
  /**
57
57
  * Don’t prefix some values
58
58
  */
59
-
59
+ ;
60
60
 
61
61
  _proto.insert = function insert(decl, prefix, prefixes) {
62
62
  if (decl.prop !== 'break-inside') {
@@ -24,11 +24,11 @@ function (_Declaration) {
24
24
  */
25
25
  _proto.prefixed = function prefixed(prop, prefix) {
26
26
  return prefix + 'print-color-adjust';
27
- };
27
+ }
28
28
  /**
29
29
  * Return property name by spec
30
30
  */
31
-
31
+ ;
32
32
 
33
33
  _proto.normalize = function normalize() {
34
34
  return 'color-adjust';
@@ -37,11 +37,11 @@ function (_Value) {
37
37
 
38
38
  _proto.check = function check(decl) {
39
39
  return decl.prop === 'display' && decl.value === this.name;
40
- };
40
+ }
41
41
  /**
42
42
  * Return value by spec
43
43
  */
44
-
44
+ ;
45
45
 
46
46
  _proto.prefixed = function prefixed(prefix) {
47
47
  var spec, value;
@@ -68,19 +68,19 @@ function (_Value) {
68
68
  }
69
69
 
70
70
  return prefix + value;
71
- };
71
+ }
72
72
  /**
73
73
  * Add prefix to value depend on flebox spec version
74
74
  */
75
-
75
+ ;
76
76
 
77
77
  _proto.replace = function replace(string, prefix) {
78
78
  return this.prefixed(prefix);
79
- };
79
+ }
80
80
  /**
81
81
  * Change value for old specs
82
82
  */
83
-
83
+ ;
84
84
 
85
85
  _proto.old = function old(prefix) {
86
86
  var prefixed = this.prefixed(prefix);
@@ -26,11 +26,11 @@ function (_Declaration) {
26
26
  */
27
27
  _proto.normalize = function normalize() {
28
28
  return 'flex-basis';
29
- };
29
+ }
30
30
  /**
31
31
  * Return flex property for 2012 spec
32
32
  */
33
-
33
+ ;
34
34
 
35
35
  _proto.prefixed = function prefixed(prop, prefix) {
36
36
  var spec;
@@ -45,11 +45,11 @@ function (_Declaration) {
45
45
  }
46
46
 
47
47
  return _Declaration.prototype.prefixed.call(this, prop, prefix);
48
- };
48
+ }
49
49
  /**
50
50
  * Ignore 2009 spec and use flex property for 2012
51
51
  */
52
-
52
+ ;
53
53
 
54
54
  _proto.set = function set(decl, prefix) {
55
55
  var spec;
@@ -26,11 +26,11 @@ function (_Declaration) {
26
26
  */
27
27
  _proto.normalize = function normalize() {
28
28
  return 'flex-direction';
29
- };
29
+ }
30
30
  /**
31
31
  * Use two properties for 2009 spec
32
32
  */
33
-
33
+ ;
34
34
 
35
35
  _proto.insert = function insert(decl, prefix, prefixes) {
36
36
  var spec;
@@ -81,11 +81,11 @@ function (_Declaration) {
81
81
  }
82
82
 
83
83
  return decl.parent.insertBefore(decl, cloned);
84
- };
84
+ }
85
85
  /**
86
86
  * Clean two properties for 2009 spec
87
87
  */
88
-
88
+ ;
89
89
 
90
90
  _proto.old = function old(prop, prefix) {
91
91
  var spec;
@@ -26,11 +26,11 @@ function (_Declaration) {
26
26
  */
27
27
  _proto.normalize = function normalize() {
28
28
  return 'flex';
29
- };
29
+ }
30
30
  /**
31
31
  * Return flex property for 2009 and 2012 specs
32
32
  */
33
-
33
+ ;
34
34
 
35
35
  _proto.prefixed = function prefixed(prop, prefix) {
36
36
  var spec;
@@ -26,11 +26,11 @@ function (_Declaration) {
26
26
  */
27
27
  _proto.normalize = function normalize() {
28
28
  return 'flex-shrink';
29
- };
29
+ }
30
30
  /**
31
31
  * Return flex property for 2012 spec
32
32
  */
33
-
33
+ ;
34
34
 
35
35
  _proto.prefixed = function prefixed(prop, prefix) {
36
36
  var spec;
@@ -45,11 +45,11 @@ function (_Declaration) {
45
45
  }
46
46
 
47
47
  return _Declaration.prototype.prefixed.call(this, prop, prefix);
48
- };
48
+ }
49
49
  /**
50
50
  * Ignore 2009 spec and use flex property for 2012
51
51
  */
52
-
52
+ ;
53
53
 
54
54
  _proto.set = function set(decl, prefix) {
55
55
  var spec;
package/lib/hacks/flex.js CHANGED
@@ -36,20 +36,20 @@ function (_Declaration) {
36
36
  }
37
37
 
38
38
  return _Declaration.prototype.prefixed.call(this, prop, prefix);
39
- };
39
+ }
40
40
  /**
41
41
  * Return property name by final spec
42
42
  */
43
-
43
+ ;
44
44
 
45
45
  _proto.normalize = function normalize() {
46
46
  return 'flex';
47
- };
47
+ }
48
48
  /**
49
49
  * Spec 2009 supports only first argument
50
50
  * Spec 2012 disallows unitless basis
51
51
  */
52
-
52
+ ;
53
53
 
54
54
  _proto.set = function set(decl, prefix) {
55
55
  var spec = flexSpec(prefix)[0];