autoprefixer 9.7.2 → 9.7.6

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 (76) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +41 -28
  3. package/data/prefixes.js +10 -26
  4. package/lib/at-rule.js +21 -16
  5. package/lib/autoprefixer.js +1 -1
  6. package/lib/brackets.js +10 -26
  7. package/lib/browsers.js +1 -3
  8. package/lib/declaration.js +23 -29
  9. package/lib/hacks/align-content.js +13 -3
  10. package/lib/hacks/align-items.js +13 -3
  11. package/lib/hacks/align-self.js +13 -3
  12. package/lib/hacks/animation.js +13 -3
  13. package/lib/hacks/appearance.js +13 -3
  14. package/lib/hacks/backdrop-filter.js +13 -3
  15. package/lib/hacks/background-clip.js +13 -3
  16. package/lib/hacks/background-size.js +13 -3
  17. package/lib/hacks/block-logical.js +13 -3
  18. package/lib/hacks/border-image.js +13 -3
  19. package/lib/hacks/border-radius.js +13 -3
  20. package/lib/hacks/break-props.js +13 -3
  21. package/lib/hacks/color-adjust.js +13 -3
  22. package/lib/hacks/cross-fade.js +13 -3
  23. package/lib/hacks/display-flex.js +13 -3
  24. package/lib/hacks/display-grid.js +13 -3
  25. package/lib/hacks/filter-value.js +13 -3
  26. package/lib/hacks/filter.js +13 -3
  27. package/lib/hacks/flex-basis.js +13 -3
  28. package/lib/hacks/flex-direction.js +13 -3
  29. package/lib/hacks/flex-flow.js +13 -3
  30. package/lib/hacks/flex-grow.js +13 -3
  31. package/lib/hacks/flex-shrink.js +13 -3
  32. package/lib/hacks/flex-wrap.js +13 -3
  33. package/lib/hacks/flex.js +13 -3
  34. package/lib/hacks/fullscreen.js +13 -3
  35. package/lib/hacks/gradient.js +31 -83
  36. package/lib/hacks/grid-area.js +13 -3
  37. package/lib/hacks/grid-column-align.js +13 -3
  38. package/lib/hacks/grid-end.js +13 -3
  39. package/lib/hacks/grid-row-align.js +13 -3
  40. package/lib/hacks/grid-row-column.js +13 -3
  41. package/lib/hacks/grid-rows-columns.js +13 -3
  42. package/lib/hacks/grid-start.js +13 -3
  43. package/lib/hacks/grid-template-areas.js +14 -4
  44. package/lib/hacks/grid-template.js +13 -3
  45. package/lib/hacks/grid-utils.js +40 -67
  46. package/lib/hacks/image-rendering.js +13 -3
  47. package/lib/hacks/image-set.js +13 -3
  48. package/lib/hacks/inline-logical.js +13 -3
  49. package/lib/hacks/intrinsic.js +13 -3
  50. package/lib/hacks/justify-content.js +13 -3
  51. package/lib/hacks/mask-border.js +13 -3
  52. package/lib/hacks/mask-composite.js +13 -3
  53. package/lib/hacks/order.js +13 -3
  54. package/lib/hacks/overscroll-behavior.js +13 -3
  55. package/lib/hacks/pixelated.js +13 -3
  56. package/lib/hacks/place-self.js +13 -3
  57. package/lib/hacks/placeholder.js +13 -3
  58. package/lib/hacks/text-decoration-skip-ink.js +13 -3
  59. package/lib/hacks/text-decoration.js +13 -3
  60. package/lib/hacks/text-emphasis-position.js +13 -3
  61. package/lib/hacks/transform-decl.js +22 -17
  62. package/lib/hacks/user-select.js +13 -3
  63. package/lib/hacks/writing-mode.js +13 -3
  64. package/lib/info.js +12 -39
  65. package/lib/old-selector.js +11 -18
  66. package/lib/old-value.js +1 -3
  67. package/lib/prefixer.js +9 -16
  68. package/lib/prefixes.js +39 -112
  69. package/lib/processor.js +25 -88
  70. package/lib/resolution.js +26 -45
  71. package/lib/selector.js +25 -33
  72. package/lib/supports.js +15 -55
  73. package/lib/transition.js +29 -127
  74. package/lib/utils.js +9 -14
  75. package/lib/value.js +13 -3
  76. package/package.json +6 -8
package/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  # Change Log
2
2
  This project adheres to [Semantic Versioning](http://semver.org/).
3
3
 
4
+ ## 9.7.6
5
+ * Revert `-webkit-stretch` fix.
6
+
7
+ ## 9.7.5
8
+ * Fix `-webkit-stretch` support.
9
+
10
+ ## 9.7.4
11
+ * Fix warning text (by Dmitry Ishkov).
12
+
13
+ ## 9.7.3
14
+ * Fix compatibility with PostCSS Modules.
15
+
4
16
  ## 9.7.2
5
17
  * Add `-ms-user-select: element` support.
6
18
  * Add funding link for `npm fund`.
package/README.md CHANGED
@@ -75,30 +75,44 @@ Twitter account for news and releases: [@autoprefixer].
75
75
 
76
76
  ## Contents
77
77
 
78
- - [Browsers](#browsers)
79
- - [FAQ](#faq)
80
- - [Does Autoprefixer polyfill Grid Layout for IE?](#does-autoprefixer-polyfill-grid-layout-for-ie)
81
- - [Does it add polyfills?](#does-it-add-polyfills)
82
- - [Why doesn’t Autoprefixer add prefixes to `border-radius`?](#why-doesnt-autoprefixer-add-prefixes-to-border-radius)
83
- - [Why does Autoprefixer use unprefixed properties in `@-webkit-keyframes`?](#why-does-autoprefixer-use-unprefixed-properties-in--webkit-keyframes)
84
- - [How to work with legacy `-webkit-` only code?](#how-to-work-with-legacy--webkit--only-code)
85
- - [Does Autoprefixer add `-epub-` prefix?](#does-autoprefixer-add--epub--prefix)
86
- - [Why doesn’t Autoprefixer transform generic font-family `system-ui`?](#why-doesnt-autoprefixer-transform-generic-font-family-system-ui)
87
- - [Usage](#usage)
88
- - [Gulp](#gulp)
89
- - [Webpack](#webpack)
90
- - [CSS-in-JS](#css-in-js)
91
- - [CLI](#cli)
92
- - [Other Build Tools](#other-build-tools)
93
- - [JavaScript](#javascript)
94
- - [Text Editors and IDE](#text-editors-and-ide)
95
- - [Warnings](#warnings)
96
- - [Disabling](#disabling)
97
- - [Options](#options)
98
- - [Environment variables](#environment-variables)
99
- - [Using environment variables to support CSS Grid prefixes in Create React App](#using-environment-variables-to-support-css-grid-prefixes-in-create-react-app)
100
- - [Grid Autoplacement support in IE](#grid-autoplacement-support-in-ie)
101
- - [Debug](#debug)
78
+ * [Contents](#contents)
79
+ * [Browsers](#browsers)
80
+ * [FAQ](#faq)
81
+ * [Does Autoprefixer polyfill Grid Layout for IE?](#does-autoprefixer-polyfill-grid-layout-for-ie)
82
+ * [Does it add polyfills?](#does-it-add-polyfills)
83
+ * [Why doesn’t Autoprefixer add prefixes to `border-radius`?](#why-doesnt-autoprefixer-add-prefixes-to-border-radius)
84
+ * [Why does Autoprefixer use unprefixed properties in `@-webkit-keyframes`?](#why-does-autoprefixer-use-unprefixed-properties-in--webkit-keyframes)
85
+ * [How to work with legacy `-webkit-` only code?](#how-to-work-with-legacy--webkit--only-code)
86
+ * [Does Autoprefixer add `-epub-` prefix?](#does-autoprefixer-add--epub--prefix)
87
+ * [Why doesn’t Autoprefixer transform generic font-family `system-ui`?](#why-doesnt-autoprefixer-transform-generic-font-family-system-ui)
88
+ * [Usage](#usage)
89
+ * [Gulp](#gulp)
90
+ * [Webpack](#webpack)
91
+ * [CSS-in-JS](#css-in-js)
92
+ * [CLI](#cli)
93
+ * [Other Build Tools](#other-build-tools)
94
+ * [Preprocessors](#preprocessors)
95
+ * [GUI Tools](#gui-tools)
96
+ * [JavaScript](#javascript)
97
+ * [Text Editors and IDE](#text-editors-and-ide)
98
+ * [Warnings](#warnings)
99
+ * [Disabling](#disabling)
100
+ * [Prefixes](#prefixes)
101
+ * [Features](#features)
102
+ * [Control Comments](#control-comments)
103
+ * [Options](#options)
104
+ * [Environment Variables](#environment-variables)
105
+ * [Using environment variables to support CSS Grid prefixes in Create React App](#using-environment-variables-to-support-css-grid-prefixes-in-create-react-app)
106
+ * [Grid Autoplacement support in IE](#grid-autoplacement-support-in-ie)
107
+ * [Beware of enabling autoplacement in old projects](#beware-of-enabling-autoplacement-in-old-projects)
108
+ * [Autoplacement limitations](#autoplacement-limitations)
109
+ * [Both columns and rows must be defined](#both-columns-and-rows-must-be-defined)
110
+ * [Repeat auto-fit and auto-fill are not supported](#repeat-auto-fit-and-auto-fill-are-not-supported)
111
+ * [No manual cell placement or column/row spans allowed inside an autoplacement grid](#no-manual-cell-placement-or-columnrow-spans-allowed-inside-an-autoplacement-grid)
112
+ * [Do not create `::before` and `::after` pseudo elements](#do-not-create-before-and-after-pseudo-elements)
113
+ * [When changing the `grid gap` value, columns and rows must be re-declared](#when-changing-the-grid-gap-value-columns-and-rows-must-be-re-declared)
114
+ * [Debug](#debug)
115
+ * [Security Contact](#security-contact)
102
116
 
103
117
  ## Browsers
104
118
 
@@ -432,11 +446,10 @@ and automation.
432
446
 
433
447
  If you can’t move to a build tool, you can use text editor plugins:
434
448
 
449
+ * [Visual Studio Code](https://github.com/mrmlnc/vscode-autoprefixer)
450
+ * [Atom Editor](https://github.com/sindresorhus/atom-autoprefixer)
435
451
  * [Sublime Text](https://github.com/sindresorhus/sublime-autoprefixer)
436
452
  * [Brackets](https://github.com/mikaeljorhult/brackets-autoprefixer)
437
- * [Atom Editor](https://github.com/sindresorhus/atom-autoprefixer)
438
- * [Visual Studio](https://github.com/madskristensen/WebCompiler)
439
- ([how to](https://stackoverflow.com/a/54908636/2440))
440
453
 
441
454
  [Parcel]: https://parceljs.org/
442
455
 
@@ -460,7 +473,7 @@ result.warnings().forEach(warn => {
460
473
 
461
474
  Every Autoprefixer runner should display these warnings.
462
475
 
463
- [PostCSS warning API]: https://github.com/postcss/postcss/blob/master/docs/api.md#warning-class
476
+ [PostCSS warning API]: http://api.postcss.org/Warning.html
464
477
 
465
478
 
466
479
  ## Disabling
package/data/prefixes.js CHANGED
@@ -1,5 +1,11 @@
1
1
  "use strict";
2
2
 
3
+ function _createForOfIteratorHelperLoose(o) { var i = 0; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } i = o[Symbol.iterator](); return i.next.bind(i); }
4
+
5
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
6
+
7
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
8
+
3
9
  var unpack = require('caniuse-lite').feature;
4
10
 
5
11
  function browsersSort(a, b) {
@@ -47,37 +53,15 @@ function f(data, opts, callback) {
47
53
  var result = {};
48
54
 
49
55
  function prefix(names, data) {
50
- for (var _iterator = names, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
51
- var _ref2;
52
-
53
- if (_isArray) {
54
- if (_i >= _iterator.length) break;
55
- _ref2 = _iterator[_i++];
56
- } else {
57
- _i = _iterator.next();
58
- if (_i.done) break;
59
- _ref2 = _i.value;
60
- }
61
-
62
- var name = _ref2;
56
+ for (var _iterator = _createForOfIteratorHelperLoose(names), _step; !(_step = _iterator()).done;) {
57
+ var name = _step.value;
63
58
  result[name] = Object.assign({}, data);
64
59
  }
65
60
  }
66
61
 
67
62
  function add(names, data) {
68
- for (var _iterator2 = names, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) {
69
- var _ref3;
70
-
71
- if (_isArray2) {
72
- if (_i2 >= _iterator2.length) break;
73
- _ref3 = _iterator2[_i2++];
74
- } else {
75
- _i2 = _iterator2.next();
76
- if (_i2.done) break;
77
- _ref3 = _i2.value;
78
- }
79
-
80
- var name = _ref3;
63
+ for (var _iterator2 = _createForOfIteratorHelperLoose(names), _step2; !(_step2 = _iterator2()).done;) {
64
+ var name = _step2.value;
81
65
  result[name].browsers = result[name].browsers.concat(data.browsers).sort(browsersSort);
82
66
  }
83
67
  }
package/lib/at-rule.js CHANGED
@@ -2,15 +2,31 @@
2
2
 
3
3
  function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
4
4
 
5
+ function _createForOfIteratorHelperLoose(o) { var i = 0; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } i = o[Symbol.iterator](); return i.next.bind(i); }
6
+
7
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
8
+
9
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
10
+
11
+ function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
12
+
13
+ function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
14
+
15
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
16
+
17
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
18
+
19
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
20
+
5
21
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
6
22
 
7
23
  var Prefixer = require('./prefixer');
8
24
 
9
- var AtRule =
10
- /*#__PURE__*/
11
- function (_Prefixer) {
25
+ var AtRule = /*#__PURE__*/function (_Prefixer) {
12
26
  _inheritsLoose(AtRule, _Prefixer);
13
27
 
28
+ var _super = _createSuper(AtRule);
29
+
14
30
  function AtRule() {
15
31
  return _Prefixer.apply(this, arguments) || this;
16
32
  }
@@ -43,19 +59,8 @@ function (_Prefixer) {
43
59
  _proto.process = function process(node) {
44
60
  var parent = this.parentPrefix(node);
45
61
 
46
- for (var _iterator = this.prefixes, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
47
- var _ref;
48
-
49
- if (_isArray) {
50
- if (_i >= _iterator.length) break;
51
- _ref = _iterator[_i++];
52
- } else {
53
- _i = _iterator.next();
54
- if (_i.done) break;
55
- _ref = _i.value;
56
- }
57
-
58
- var prefix = _ref;
62
+ for (var _iterator = _createForOfIteratorHelperLoose(this.prefixes), _step; !(_step = _iterator()).done;) {
63
+ var prefix = _step.value;
59
64
 
60
65
  if (!parent || parent === prefix) {
61
66
  this.add(node, prefix);
@@ -16,7 +16,7 @@ var data = require('../data/prefixes');
16
16
 
17
17
  var info = require('./info');
18
18
 
19
- var WARNING = '\n' + ' Replace Autoprefixer `browsers` option to Browserslist config.\n' + ' Use `browserslist` key in `package.json` or `.browserslistrc` file.\n' + '\n' + ' Using `browsers` option cause some error. Browserslist config \n' + ' can be used for Babel, Autoprefixer, postcss-normalize and other tools.\n' + '\n' + ' If you really need to use option, rename it to `overrideBrowserslist`.\n' + '\n' + ' Learn more at:\n' + ' https://github.com/browserslist/browserslist#readme\n' + ' https://twitter.com/browserslist\n' + '\n';
19
+ var WARNING = '\n' + ' Replace Autoprefixer `browsers` option to Browserslist config.\n' + ' Use `browserslist` key in `package.json` or `.browserslistrc` file.\n' + '\n' + ' Using `browsers` option can cause errors. Browserslist config \n' + ' can be used for Babel, Autoprefixer, postcss-normalize and other tools.\n' + '\n' + ' If you really need to use option, rename it to `overrideBrowserslist`.\n' + '\n' + ' Learn more at:\n' + ' https://github.com/browserslist/browserslist#readme\n' + ' https://twitter.com/browserslist\n' + '\n';
20
20
 
21
21
  function isPlainObject(obj) {
22
22
  return Object.prototype.toString.apply(obj) === '[object Object]';
package/lib/brackets.js CHANGED
@@ -1,5 +1,11 @@
1
1
  "use strict";
2
2
 
3
+ function _createForOfIteratorHelperLoose(o) { var i = 0; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } i = o[Symbol.iterator](); return i.next.bind(i); }
4
+
5
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
6
+
7
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
8
+
3
9
  function last(array) {
4
10
  return array[array.length - 1];
5
11
  }
@@ -12,19 +18,8 @@ var brackets = {
12
18
  var current = [''];
13
19
  var stack = [current];
14
20
 
15
- for (var _iterator = str, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
16
- var _ref;
17
-
18
- if (_isArray) {
19
- if (_i >= _iterator.length) break;
20
- _ref = _iterator[_i++];
21
- } else {
22
- _i = _iterator.next();
23
- if (_i.done) break;
24
- _ref = _i.value;
25
- }
26
-
27
- var sym = _ref;
21
+ for (var _iterator = _createForOfIteratorHelperLoose(str), _step; !(_step = _iterator()).done;) {
22
+ var sym = _step.value;
28
23
 
29
24
  if (sym === '(') {
30
25
  current = [''];
@@ -52,19 +47,8 @@ var brackets = {
52
47
  stringify: function stringify(ast) {
53
48
  var result = '';
54
49
 
55
- for (var _iterator2 = ast, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) {
56
- var _ref2;
57
-
58
- if (_isArray2) {
59
- if (_i2 >= _iterator2.length) break;
60
- _ref2 = _iterator2[_i2++];
61
- } else {
62
- _i2 = _iterator2.next();
63
- if (_i2.done) break;
64
- _ref2 = _i2.value;
65
- }
66
-
67
- var i = _ref2;
50
+ for (var _iterator2 = _createForOfIteratorHelperLoose(ast), _step2; !(_step2 = _iterator2()).done;) {
51
+ var i = _step2.value;
68
52
 
69
53
  if (typeof i === 'object') {
70
54
  result += "(" + brackets.stringify(i) + ")";
package/lib/browsers.js CHANGED
@@ -6,9 +6,7 @@ var agents = require('caniuse-lite').agents;
6
6
 
7
7
  var utils = require('./utils');
8
8
 
9
- var Browsers =
10
- /*#__PURE__*/
11
- function () {
9
+ var Browsers = /*#__PURE__*/function () {
12
10
  /**
13
11
  * Return all prefixes for default browser data
14
12
  */
@@ -2,6 +2,22 @@
2
2
 
3
3
  function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
4
4
 
5
+ function _createForOfIteratorHelperLoose(o) { var i = 0; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } i = o[Symbol.iterator](); return i.next.bind(i); }
6
+
7
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
8
+
9
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
10
+
11
+ function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
12
+
13
+ function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
14
+
15
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
16
+
17
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
18
+
19
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
20
+
5
21
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
6
22
 
7
23
  var Prefixer = require('./prefixer');
@@ -10,11 +26,11 @@ var Browsers = require('./browsers');
10
26
 
11
27
  var utils = require('./utils');
12
28
 
13
- var Declaration =
14
- /*#__PURE__*/
15
- function (_Prefixer) {
29
+ var Declaration = /*#__PURE__*/function (_Prefixer) {
16
30
  _inheritsLoose(Declaration, _Prefixer);
17
31
 
32
+ var _super = _createSuper(Declaration);
33
+
18
34
  function Declaration() {
19
35
  return _Prefixer.apply(this, arguments) || this;
20
36
  }
@@ -51,19 +67,8 @@ function (_Prefixer) {
51
67
  ;
52
68
 
53
69
  _proto.otherPrefixes = function otherPrefixes(value, prefix) {
54
- for (var _iterator = Browsers.prefixes(), _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
55
- var _ref;
56
-
57
- if (_isArray) {
58
- if (_i >= _iterator.length) break;
59
- _ref = _iterator[_i++];
60
- } else {
61
- _i = _iterator.next();
62
- if (_i.done) break;
63
- _ref = _i.value;
64
- }
65
-
66
- var other = _ref;
70
+ for (var _iterator = _createForOfIteratorHelperLoose(Browsers.prefixes()), _step; !(_step = _iterator()).done;) {
71
+ var other = _step.value;
67
72
 
68
73
  if (other === prefix) {
69
74
  continue;
@@ -109,19 +114,8 @@ function (_Prefixer) {
109
114
 
110
115
  var max = 0;
111
116
 
112
- for (var _iterator2 = prefixes, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) {
113
- var _ref2;
114
-
115
- if (_isArray2) {
116
- if (_i2 >= _iterator2.length) break;
117
- _ref2 = _iterator2[_i2++];
118
- } else {
119
- _i2 = _iterator2.next();
120
- if (_i2.done) break;
121
- _ref2 = _i2.value;
122
- }
123
-
124
- var prefix = _ref2;
117
+ for (var _iterator2 = _createForOfIteratorHelperLoose(prefixes), _step2; !(_step2 = _iterator2()).done;) {
118
+ var prefix = _step2.value;
125
119
  prefix = utils.removeNote(prefix);
126
120
 
127
121
  if (prefix.length > max) {
@@ -2,6 +2,16 @@
2
2
 
3
3
  function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
4
4
 
5
+ function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
6
+
7
+ function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
8
+
9
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10
+
11
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
12
+
13
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
14
+
5
15
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
6
16
 
7
17
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -10,11 +20,11 @@ var flexSpec = require('./flex-spec');
10
20
 
11
21
  var Declaration = require('../declaration');
12
22
 
13
- var AlignContent =
14
- /*#__PURE__*/
15
- function (_Declaration) {
23
+ var AlignContent = /*#__PURE__*/function (_Declaration) {
16
24
  _inheritsLoose(AlignContent, _Declaration);
17
25
 
26
+ var _super = _createSuper(AlignContent);
27
+
18
28
  function AlignContent() {
19
29
  return _Declaration.apply(this, arguments) || this;
20
30
  }
@@ -2,6 +2,16 @@
2
2
 
3
3
  function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
4
4
 
5
+ function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
6
+
7
+ function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
8
+
9
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10
+
11
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
12
+
13
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
14
+
5
15
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
6
16
 
7
17
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -10,11 +20,11 @@ var flexSpec = require('./flex-spec');
10
20
 
11
21
  var Declaration = require('../declaration');
12
22
 
13
- var AlignItems =
14
- /*#__PURE__*/
15
- function (_Declaration) {
23
+ var AlignItems = /*#__PURE__*/function (_Declaration) {
16
24
  _inheritsLoose(AlignItems, _Declaration);
17
25
 
26
+ var _super = _createSuper(AlignItems);
27
+
18
28
  function AlignItems() {
19
29
  return _Declaration.apply(this, arguments) || this;
20
30
  }
@@ -2,6 +2,16 @@
2
2
 
3
3
  function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
4
4
 
5
+ function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
6
+
7
+ function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
8
+
9
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10
+
11
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
12
+
13
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
14
+
5
15
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
6
16
 
7
17
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -10,11 +20,11 @@ var flexSpec = require('./flex-spec');
10
20
 
11
21
  var Declaration = require('../declaration');
12
22
 
13
- var AlignSelf =
14
- /*#__PURE__*/
15
- function (_Declaration) {
23
+ var AlignSelf = /*#__PURE__*/function (_Declaration) {
16
24
  _inheritsLoose(AlignSelf, _Declaration);
17
25
 
26
+ var _super = _createSuper(AlignSelf);
27
+
18
28
  function AlignSelf() {
19
29
  return _Declaration.apply(this, arguments) || this;
20
30
  }
@@ -2,17 +2,27 @@
2
2
 
3
3
  function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
4
4
 
5
+ function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
6
+
7
+ function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
8
+
9
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10
+
11
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
12
+
13
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
14
+
5
15
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
6
16
 
7
17
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8
18
 
9
19
  var Declaration = require('../declaration');
10
20
 
11
- var Animation =
12
- /*#__PURE__*/
13
- function (_Declaration) {
21
+ var Animation = /*#__PURE__*/function (_Declaration) {
14
22
  _inheritsLoose(Animation, _Declaration);
15
23
 
24
+ var _super = _createSuper(Animation);
25
+
16
26
  function Animation() {
17
27
  return _Declaration.apply(this, arguments) || this;
18
28
  }
@@ -2,6 +2,16 @@
2
2
 
3
3
  function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
4
4
 
5
+ function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
6
+
7
+ function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
8
+
9
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10
+
11
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
12
+
13
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
14
+
5
15
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
6
16
 
7
17
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -10,11 +20,11 @@ var Declaration = require('../declaration');
10
20
 
11
21
  var utils = require('../utils');
12
22
 
13
- var Appearance =
14
- /*#__PURE__*/
15
- function (_Declaration) {
23
+ var Appearance = /*#__PURE__*/function (_Declaration) {
16
24
  _inheritsLoose(Appearance, _Declaration);
17
25
 
26
+ var _super = _createSuper(Appearance);
27
+
18
28
  function Appearance(name, prefixes, all) {
19
29
  var _this;
20
30
 
@@ -2,6 +2,16 @@
2
2
 
3
3
  function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
4
4
 
5
+ function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
6
+
7
+ function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
8
+
9
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10
+
11
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
12
+
13
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
14
+
5
15
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
6
16
 
7
17
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -10,11 +20,11 @@ var Declaration = require('../declaration');
10
20
 
11
21
  var utils = require('../utils');
12
22
 
13
- var BackdropFilter =
14
- /*#__PURE__*/
15
- function (_Declaration) {
23
+ var BackdropFilter = /*#__PURE__*/function (_Declaration) {
16
24
  _inheritsLoose(BackdropFilter, _Declaration);
17
25
 
26
+ var _super = _createSuper(BackdropFilter);
27
+
18
28
  function BackdropFilter(name, prefixes, all) {
19
29
  var _this;
20
30
 
@@ -2,6 +2,16 @@
2
2
 
3
3
  function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
4
4
 
5
+ function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
6
+
7
+ function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
8
+
9
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10
+
11
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
12
+
13
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
14
+
5
15
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
6
16
 
7
17
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -10,11 +20,11 @@ var Declaration = require('../declaration');
10
20
 
11
21
  var utils = require('../utils');
12
22
 
13
- var BackgroundClip =
14
- /*#__PURE__*/
15
- function (_Declaration) {
23
+ var BackgroundClip = /*#__PURE__*/function (_Declaration) {
16
24
  _inheritsLoose(BackgroundClip, _Declaration);
17
25
 
26
+ var _super = _createSuper(BackgroundClip);
27
+
18
28
  function BackgroundClip(name, prefixes, all) {
19
29
  var _this;
20
30