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.
- package/CHANGELOG.md +13 -0
- package/README.md +46 -7
- package/data/prefixes.js +18 -27
- package/lib/at-rule.js +21 -16
- package/lib/autoprefixer.js +1 -1
- package/lib/brackets.js +10 -26
- package/lib/browsers.js +1 -3
- package/lib/declaration.js +23 -29
- package/lib/hacks/align-content.js +13 -3
- package/lib/hacks/align-items.js +13 -3
- package/lib/hacks/align-self.js +13 -3
- package/lib/hacks/animation.js +13 -3
- package/lib/hacks/appearance.js +13 -3
- package/lib/hacks/backdrop-filter.js +13 -3
- package/lib/hacks/background-clip.js +13 -3
- package/lib/hacks/background-size.js +13 -3
- package/lib/hacks/block-logical.js +13 -3
- package/lib/hacks/border-image.js +13 -3
- package/lib/hacks/border-radius.js +13 -3
- package/lib/hacks/break-props.js +13 -3
- package/lib/hacks/color-adjust.js +13 -3
- package/lib/hacks/cross-fade.js +13 -3
- package/lib/hacks/display-flex.js +13 -3
- package/lib/hacks/display-grid.js +13 -3
- package/lib/hacks/filter-value.js +13 -3
- package/lib/hacks/filter.js +13 -3
- package/lib/hacks/flex-basis.js +13 -3
- package/lib/hacks/flex-direction.js +13 -3
- package/lib/hacks/flex-flow.js +13 -3
- package/lib/hacks/flex-grow.js +13 -3
- package/lib/hacks/flex-shrink.js +13 -3
- package/lib/hacks/flex-wrap.js +13 -3
- package/lib/hacks/flex.js +13 -3
- package/lib/hacks/fullscreen.js +13 -3
- package/lib/hacks/gradient.js +31 -83
- package/lib/hacks/grid-area.js +13 -3
- package/lib/hacks/grid-column-align.js +13 -3
- package/lib/hacks/grid-end.js +13 -3
- package/lib/hacks/grid-row-align.js +13 -3
- package/lib/hacks/grid-row-column.js +13 -3
- package/lib/hacks/grid-rows-columns.js +13 -3
- package/lib/hacks/grid-start.js +13 -3
- package/lib/hacks/grid-template-areas.js +14 -4
- package/lib/hacks/grid-template.js +13 -3
- package/lib/hacks/grid-utils.js +40 -67
- package/lib/hacks/image-rendering.js +13 -3
- package/lib/hacks/image-set.js +13 -3
- package/lib/hacks/inline-logical.js +13 -3
- package/lib/hacks/intrinsic.js +23 -11
- package/lib/hacks/justify-content.js +13 -3
- package/lib/hacks/mask-border.js +13 -3
- package/lib/hacks/mask-composite.js +13 -3
- package/lib/hacks/order.js +13 -3
- package/lib/hacks/overscroll-behavior.js +13 -3
- package/lib/hacks/pixelated.js +13 -3
- package/lib/hacks/place-self.js +13 -3
- package/lib/hacks/placeholder.js +13 -3
- package/lib/hacks/text-decoration-skip-ink.js +13 -3
- package/lib/hacks/text-decoration.js +13 -3
- package/lib/hacks/text-emphasis-position.js +13 -3
- package/lib/hacks/transform-decl.js +22 -17
- package/lib/hacks/user-select.js +48 -0
- package/lib/hacks/writing-mode.js +13 -3
- package/lib/info.js +12 -39
- package/lib/old-selector.js +11 -18
- package/lib/old-value.js +1 -3
- package/lib/prefixer.js +9 -16
- package/lib/prefixes.js +40 -112
- package/lib/processor.js +25 -88
- package/lib/resolution.js +26 -45
- package/lib/selector.js +25 -33
- package/lib/supports.js +15 -55
- package/lib/transition.js +29 -127
- package/lib/utils.js +9 -14
- package/lib/value.js +13 -3
- package/package.json +10 -8
|
@@ -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 TextDecorationSkipInk =
|
|
12
|
-
/*#__PURE__*/
|
|
13
|
-
function (_Declaration) {
|
|
21
|
+
var TextDecorationSkipInk = /*#__PURE__*/function (_Declaration) {
|
|
14
22
|
_inheritsLoose(TextDecorationSkipInk, _Declaration);
|
|
15
23
|
|
|
24
|
+
var _super = _createSuper(TextDecorationSkipInk);
|
|
25
|
+
|
|
16
26
|
function TextDecorationSkipInk() {
|
|
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 BASIC = ['none', 'underline', 'overline', 'line-through', 'blink', 'inherit', 'initial', 'unset'];
|
|
12
22
|
|
|
13
|
-
var TextDecoration =
|
|
14
|
-
/*#__PURE__*/
|
|
15
|
-
function (_Declaration) {
|
|
23
|
+
var TextDecoration = /*#__PURE__*/function (_Declaration) {
|
|
16
24
|
_inheritsLoose(TextDecoration, _Declaration);
|
|
17
25
|
|
|
26
|
+
var _super = _createSuper(TextDecoration);
|
|
27
|
+
|
|
18
28
|
function TextDecoration() {
|
|
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 TextEmphasisPosition =
|
|
12
|
-
/*#__PURE__*/
|
|
13
|
-
function (_Declaration) {
|
|
21
|
+
var TextEmphasisPosition = /*#__PURE__*/function (_Declaration) {
|
|
14
22
|
_inheritsLoose(TextEmphasisPosition, _Declaration);
|
|
15
23
|
|
|
24
|
+
var _super = _createSuper(TextEmphasisPosition);
|
|
25
|
+
|
|
16
26
|
function TextEmphasisPosition() {
|
|
17
27
|
return _Declaration.apply(this, arguments) || this;
|
|
18
28
|
}
|
|
@@ -2,17 +2,33 @@
|
|
|
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
|
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
24
|
|
|
9
25
|
var Declaration = require('../declaration');
|
|
10
26
|
|
|
11
|
-
var TransformDecl =
|
|
12
|
-
/*#__PURE__*/
|
|
13
|
-
function (_Declaration) {
|
|
27
|
+
var TransformDecl = /*#__PURE__*/function (_Declaration) {
|
|
14
28
|
_inheritsLoose(TransformDecl, _Declaration);
|
|
15
29
|
|
|
30
|
+
var _super = _createSuper(TransformDecl);
|
|
31
|
+
|
|
16
32
|
function TransformDecl() {
|
|
17
33
|
return _Declaration.apply(this, arguments) || this;
|
|
18
34
|
}
|
|
@@ -46,19 +62,8 @@ function (_Declaration) {
|
|
|
46
62
|
return false;
|
|
47
63
|
}
|
|
48
64
|
|
|
49
|
-
for (var _iterator = TransformDecl.functions3d,
|
|
50
|
-
var
|
|
51
|
-
|
|
52
|
-
if (_isArray) {
|
|
53
|
-
if (_i >= _iterator.length) break;
|
|
54
|
-
_ref = _iterator[_i++];
|
|
55
|
-
} else {
|
|
56
|
-
_i = _iterator.next();
|
|
57
|
-
if (_i.done) break;
|
|
58
|
-
_ref = _i.value;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
var func = _ref;
|
|
65
|
+
for (var _iterator = _createForOfIteratorHelperLoose(TransformDecl.functions3d), _step; !(_step = _iterator()).done;) {
|
|
66
|
+
var func = _step.value;
|
|
62
67
|
|
|
63
68
|
if (decl.value.includes(func + "(")) {
|
|
64
69
|
return true;
|
|
@@ -76,7 +81,7 @@ function (_Declaration) {
|
|
|
76
81
|
decl = _Declaration.prototype.set.call(this, decl, prefix);
|
|
77
82
|
|
|
78
83
|
if (prefix === '-ms-') {
|
|
79
|
-
decl.value = decl.value.replace(/
|
|
84
|
+
decl.value = decl.value.replace(/rotatez/gi, 'rotate');
|
|
80
85
|
}
|
|
81
86
|
|
|
82
87
|
return decl;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
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
|
+
|
|
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
|
+
|
|
15
|
+
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
|
16
|
+
|
|
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; }
|
|
18
|
+
|
|
19
|
+
var Declaration = require('../declaration');
|
|
20
|
+
|
|
21
|
+
var UserSelect = /*#__PURE__*/function (_Declaration) {
|
|
22
|
+
_inheritsLoose(UserSelect, _Declaration);
|
|
23
|
+
|
|
24
|
+
var _super = _createSuper(UserSelect);
|
|
25
|
+
|
|
26
|
+
function UserSelect() {
|
|
27
|
+
return _Declaration.apply(this, arguments) || this;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
var _proto = UserSelect.prototype;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Change prefixed value for IE
|
|
34
|
+
*/
|
|
35
|
+
_proto.set = function set(decl, prefix) {
|
|
36
|
+
if (prefix === '-ms-' && decl.value === 'contain') {
|
|
37
|
+
decl.value = 'element';
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
return _Declaration.prototype.set.call(this, decl, prefix);
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
return UserSelect;
|
|
44
|
+
}(Declaration);
|
|
45
|
+
|
|
46
|
+
_defineProperty(UserSelect, "names", ['user-select']);
|
|
47
|
+
|
|
48
|
+
module.exports = UserSelect;
|
|
@@ -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 WritingMode =
|
|
12
|
-
/*#__PURE__*/
|
|
13
|
-
function (_Declaration) {
|
|
21
|
+
var WritingMode = /*#__PURE__*/function (_Declaration) {
|
|
14
22
|
_inheritsLoose(WritingMode, _Declaration);
|
|
15
23
|
|
|
24
|
+
var _super = _createSuper(WritingMode);
|
|
25
|
+
|
|
16
26
|
function WritingMode() {
|
|
17
27
|
return _Declaration.apply(this, arguments) || this;
|
|
18
28
|
}
|
package/lib/info.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 browserslist = require('browserslist');
|
|
4
10
|
|
|
5
11
|
function capitalize(str) {
|
|
@@ -35,19 +41,8 @@ module.exports = function (prefixes) {
|
|
|
35
41
|
|
|
36
42
|
var versions = {};
|
|
37
43
|
|
|
38
|
-
for (var _iterator = prefixes.browsers.selected,
|
|
39
|
-
var
|
|
40
|
-
|
|
41
|
-
if (_isArray) {
|
|
42
|
-
if (_i >= _iterator.length) break;
|
|
43
|
-
_ref = _iterator[_i++];
|
|
44
|
-
} else {
|
|
45
|
-
_i = _iterator.next();
|
|
46
|
-
if (_i.done) break;
|
|
47
|
-
_ref = _i.value;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
var _browser = _ref;
|
|
44
|
+
for (var _iterator = _createForOfIteratorHelperLoose(prefixes.browsers.selected), _step; !(_step = _iterator()).done;) {
|
|
45
|
+
var _browser = _step.value;
|
|
51
46
|
|
|
52
47
|
var parts = _browser.split(' ');
|
|
53
48
|
|
|
@@ -91,19 +86,8 @@ module.exports = function (prefixes) {
|
|
|
91
86
|
|
|
92
87
|
var selectors = [];
|
|
93
88
|
|
|
94
|
-
for (var _iterator2 = prefixes.add.selectors,
|
|
95
|
-
var
|
|
96
|
-
|
|
97
|
-
if (_isArray2) {
|
|
98
|
-
if (_i2 >= _iterator2.length) break;
|
|
99
|
-
_ref2 = _iterator2[_i2++];
|
|
100
|
-
} else {
|
|
101
|
-
_i2 = _iterator2.next();
|
|
102
|
-
if (_i2.done) break;
|
|
103
|
-
_ref2 = _i2.value;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
var selector = _ref2;
|
|
89
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose(prefixes.add.selectors), _step2; !(_step2 = _iterator2()).done;) {
|
|
90
|
+
var selector = _step2.value;
|
|
107
91
|
|
|
108
92
|
if (selector.prefixes) {
|
|
109
93
|
selectors.push(prefix(selector.name, selector.prefixes));
|
|
@@ -131,19 +115,8 @@ module.exports = function (prefixes) {
|
|
|
131
115
|
continue;
|
|
132
116
|
}
|
|
133
117
|
|
|
134
|
-
for (var _iterator3 = _data.values,
|
|
135
|
-
var
|
|
136
|
-
|
|
137
|
-
if (_isArray3) {
|
|
138
|
-
if (_i3 >= _iterator3.length) break;
|
|
139
|
-
_ref3 = _iterator3[_i3++];
|
|
140
|
-
} else {
|
|
141
|
-
_i3 = _iterator3.next();
|
|
142
|
-
if (_i3.done) break;
|
|
143
|
-
_ref3 = _i3.value;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
var value = _ref3;
|
|
118
|
+
for (var _iterator3 = _createForOfIteratorHelperLoose(_data.values), _step3; !(_step3 = _iterator3()).done;) {
|
|
119
|
+
var value = _step3.value;
|
|
147
120
|
|
|
148
121
|
var _grid = value.name.includes('grid');
|
|
149
122
|
|
package/lib/old-selector.js
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
function () {
|
|
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
|
+
|
|
9
|
+
var OldSelector = /*#__PURE__*/function () {
|
|
6
10
|
function OldSelector(selector, prefix) {
|
|
7
11
|
this.prefix = prefix;
|
|
8
12
|
this.prefixed = selector.prefixed(this.prefix);
|
|
@@ -37,21 +41,10 @@ function () {
|
|
|
37
41
|
|
|
38
42
|
var some = false;
|
|
39
43
|
|
|
40
|
-
for (var _iterator = this.prefixeds,
|
|
41
|
-
var
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
if (_i >= _iterator.length) break;
|
|
45
|
-
_ref = _iterator[_i++];
|
|
46
|
-
} else {
|
|
47
|
-
_i = _iterator.next();
|
|
48
|
-
if (_i.done) break;
|
|
49
|
-
_ref = _i.value;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
var _ref2 = _ref,
|
|
53
|
-
string = _ref2[0],
|
|
54
|
-
regexp = _ref2[1];
|
|
44
|
+
for (var _iterator = _createForOfIteratorHelperLoose(this.prefixeds), _step; !(_step = _iterator()).done;) {
|
|
45
|
+
var _step$value = _step.value,
|
|
46
|
+
string = _step$value[0],
|
|
47
|
+
regexp = _step$value[1];
|
|
55
48
|
|
|
56
49
|
if (before.includes(string) && before.match(regexp)) {
|
|
57
50
|
some = true;
|
package/lib/old-value.js
CHANGED
package/lib/prefixer.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 vendor = require('postcss').vendor;
|
|
4
10
|
|
|
5
11
|
var Browsers = require('./browsers');
|
|
@@ -39,9 +45,7 @@ function _clone(obj, parent) {
|
|
|
39
45
|
return cloned;
|
|
40
46
|
}
|
|
41
47
|
|
|
42
|
-
var Prefixer =
|
|
43
|
-
/*#__PURE__*/
|
|
44
|
-
function () {
|
|
48
|
+
var Prefixer = /*#__PURE__*/function () {
|
|
45
49
|
/**
|
|
46
50
|
* Add hack to selected names
|
|
47
51
|
*/
|
|
@@ -138,19 +142,8 @@ function () {
|
|
|
138
142
|
});
|
|
139
143
|
var added = [];
|
|
140
144
|
|
|
141
|
-
for (var _iterator = prefixes,
|
|
142
|
-
var
|
|
143
|
-
|
|
144
|
-
if (_isArray) {
|
|
145
|
-
if (_i2 >= _iterator.length) break;
|
|
146
|
-
_ref = _iterator[_i2++];
|
|
147
|
-
} else {
|
|
148
|
-
_i2 = _iterator.next();
|
|
149
|
-
if (_i2.done) break;
|
|
150
|
-
_ref = _i2.value;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
var prefix = _ref;
|
|
145
|
+
for (var _iterator = _createForOfIteratorHelperLoose(prefixes), _step; !(_step = _iterator()).done;) {
|
|
146
|
+
var prefix = _step.value;
|
|
154
147
|
|
|
155
148
|
if (this.add(node, prefix, added.concat([prefix]), result)) {
|
|
156
149
|
added.push(prefix);
|