autoprefixer 9.7.1 → 9.7.5

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 +13 -0
  2. package/README.md +46 -7
  3. package/data/prefixes.js +18 -27
  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 +23 -11
  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 +48 -0
  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 +40 -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 +10 -8
package/CHANGELOG.md CHANGED
@@ -1,6 +1,19 @@
1
1
  # Change Log
2
2
  This project adheres to [Semantic Versioning](http://semver.org/).
3
3
 
4
+ ## 9.7.5
5
+ * Fix `-webkit-stretch` support.
6
+
7
+ ## 9.7.4
8
+ * Fix warning text (by Dmitry Ishkov).
9
+
10
+ ## 9.7.3
11
+ * Fix compatibility with PostCSS Modules.
12
+
13
+ ## 9.7.2
14
+ * Add `-ms-user-select: element` support.
15
+ * Add funding link for `npm fund`.
16
+
4
17
  ## 9.7.1
5
18
  * Avoid unnecessary transitions in prefixed selectors (by Andrey Alexandrov).
6
19
  * Fix `fit-content` for Firefox.
package/README.md CHANGED
@@ -95,6 +95,8 @@ Twitter account for news and releases: [@autoprefixer].
95
95
  - [Warnings](#warnings)
96
96
  - [Disabling](#disabling)
97
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)
98
100
  - [Grid Autoplacement support in IE](#grid-autoplacement-support-in-ie)
99
101
  - [Debug](#debug)
100
102
 
@@ -458,7 +460,7 @@ result.warnings().forEach(warn => {
458
460
 
459
461
  Every Autoprefixer runner should display these warnings.
460
462
 
461
- [PostCSS warning API]: https://github.com/postcss/postcss/blob/master/docs/api.md#warning-class
463
+ [PostCSS warning API]: http://api.postcss.org/Warning.html
462
464
 
463
465
 
464
466
  ## Disabling
@@ -622,16 +624,53 @@ to increase performance.
622
624
  * `no-autoplace`: enable Autoprefixer grid translations
623
625
  but *exclude* autoplacement support.
624
626
 
625
- Environment variables is useful, when you can change Autoprefixer options.
626
- For instance, in Create React App.
627
+ Environment variables are useful, when you want to change Autoprefixer options but don't have access to config files.
628
+ [Create React App] is a good example of this.
627
629
 
628
- Add variable before CLI command, which will build your CSS:
630
+ [Create React App]: (https://reactjs.org/docs/create-a-new-react-app.html#create-react-app)
629
631
 
630
- ```sh
631
- AUTOPREFIXER_GRID=autoplace npm build
632
+ ### Using environment variables to support CSS Grid prefixes in Create React App
633
+
634
+ 1. Install the latest version of Autoprefixer and [cross-env](https://www.npmjs.com/package/cross-env):
635
+
636
+ ```
637
+ npm install autoprefixer@latest cross-env --save-dev
638
+ ```
639
+
640
+ 2. Under `"browserslist"` > `"development"` in the package.json file, add `"last 1 ie version"`
641
+
642
+ ```
643
+ "browserslist": {
644
+ "production": [
645
+ ">0.2%",
646
+ "not dead",
647
+ "not op_mini all"
648
+ ],
649
+ "development": [
650
+ "last 1 chrome version",
651
+ "last 1 firefox version",
652
+ "last 1 safari version",
653
+ "last 1 ie version"
654
+ ]
655
+ }
656
+ ```
657
+
658
+ 3. Update `"scripts"` in the package.json file to the following:
659
+
660
+ ```
661
+ "scripts": {
662
+ "start": "cross-env AUTOPREFIXER_GRID=autoplace react-scripts start",
663
+ "build": "cross-env AUTOPREFIXER_GRID=autoplace react-scripts build",
664
+ "test": "cross-env AUTOPREFIXER_GRID=autoplace react-scripts test",
665
+ "eject": "react-scripts eject"
666
+ },
632
667
  ```
633
668
 
634
- See also [Browserslist environment variables].
669
+ Replace `autoplace` with `no-autoplace` in the above example if you prefer to disable Autoprefixer Grid autoplacement support.
670
+
671
+ Now when you run `npm start` you will see CSS Grid prefixes automatically being applied to your output CSS.
672
+
673
+ See also [Browserslist environment variables] for more examples on how to use environment variables in your project.
635
674
 
636
675
  [Browserslist environment variables]: https://github.com/browserslist/browserslist#environment-variables
637
676
 
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
  }
@@ -385,7 +369,14 @@ f(intrinsic, function (browsers) {
385
369
  f(intrinsic, {
386
370
  match: /x|\s#4/
387
371
  }, function (browsers) {
388
- return prefix(['fill', 'fill-available', 'stretch'], {
372
+ browsers = browsers.map(function (i) {
373
+ if (/safari/.test(i)) {
374
+ return i;
375
+ } else {
376
+ return i + " old";
377
+ }
378
+ });
379
+ prefix(['fill', 'fill-available', 'stretch'], {
389
380
  props: sizeProps,
390
381
  feature: 'intrinsic-width',
391
382
  browsers: browsers
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