autoprefixer 9.7.3 → 9.8.0
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 +12 -0
- package/README.md +52 -28
- package/data/prefixes.js +18 -26
- package/lib/at-rule.js +9 -16
- package/lib/autoprefixer.js +1 -1
- package/lib/brackets.js +10 -26
- package/lib/browsers.js +1 -3
- package/lib/declaration.js +11 -29
- package/lib/hacks/align-content.js +1 -3
- package/lib/hacks/align-items.js +1 -3
- package/lib/hacks/align-self.js +1 -3
- package/lib/hacks/animation.js +1 -3
- package/lib/hacks/appearance.js +1 -3
- package/lib/hacks/backdrop-filter.js +1 -3
- package/lib/hacks/background-clip.js +1 -3
- package/lib/hacks/background-size.js +1 -3
- package/lib/hacks/block-logical.js +1 -3
- package/lib/hacks/border-image.js +1 -3
- package/lib/hacks/border-radius.js +1 -3
- package/lib/hacks/break-props.js +1 -3
- package/lib/hacks/color-adjust.js +1 -3
- package/lib/hacks/cross-fade.js +1 -3
- package/lib/hacks/display-flex.js +1 -3
- package/lib/hacks/display-grid.js +1 -3
- package/lib/hacks/filter-value.js +1 -3
- package/lib/hacks/filter.js +1 -3
- package/lib/hacks/flex-basis.js +1 -3
- package/lib/hacks/flex-direction.js +1 -3
- package/lib/hacks/flex-flow.js +1 -3
- package/lib/hacks/flex-grow.js +1 -3
- package/lib/hacks/flex-shrink.js +1 -3
- package/lib/hacks/flex-wrap.js +1 -3
- package/lib/hacks/flex.js +1 -3
- package/lib/hacks/fullscreen.js +1 -3
- package/lib/hacks/gradient.js +21 -83
- package/lib/hacks/grid-area.js +1 -3
- package/lib/hacks/grid-column-align.js +1 -3
- package/lib/hacks/grid-end.js +1 -3
- package/lib/hacks/grid-row-align.js +1 -3
- package/lib/hacks/grid-row-column.js +1 -3
- package/lib/hacks/grid-rows-columns.js +1 -3
- package/lib/hacks/grid-start.js +1 -3
- package/lib/hacks/grid-template-areas.js +1 -3
- package/lib/hacks/grid-template.js +1 -3
- package/lib/hacks/grid-utils.js +39 -66
- package/lib/hacks/image-rendering.js +1 -3
- package/lib/hacks/image-set.js +1 -3
- package/lib/hacks/inline-logical.js +1 -3
- package/lib/hacks/intrinsic.js +1 -3
- package/lib/hacks/justify-content.js +1 -3
- package/lib/hacks/mask-border.js +1 -3
- package/lib/hacks/mask-composite.js +1 -3
- package/lib/hacks/order.js +1 -3
- package/lib/hacks/overscroll-behavior.js +1 -3
- package/lib/hacks/pixelated.js +1 -3
- package/lib/hacks/place-self.js +1 -3
- package/lib/hacks/placeholder-shown.js +36 -0
- package/lib/hacks/placeholder.js +1 -3
- package/lib/hacks/text-decoration-skip-ink.js +1 -3
- package/lib/hacks/text-decoration.js +1 -3
- package/lib/hacks/text-emphasis-position.js +1 -3
- package/lib/hacks/transform-decl.js +9 -16
- package/lib/hacks/user-select.js +1 -3
- package/lib/hacks/writing-mode.js +1 -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 +22 -94
- package/lib/processor.js +20 -84
- package/lib/resolution.js +14 -45
- package/lib/selector.js +12 -32
- package/lib/supports.js +15 -55
- package/lib/transition.js +29 -127
- package/lib/utils.js +8 -13
- package/lib/value.js +1 -3
- 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.8 “Vigilo Confido”
|
|
5
|
+
* Add `:placeholder-shown` support (by Tanguy Krotoff).
|
|
6
|
+
|
|
7
|
+
## 9.7.6
|
|
8
|
+
* Revert `-webkit-stretch` fix.
|
|
9
|
+
|
|
10
|
+
## 9.7.5
|
|
11
|
+
* Fix `-webkit-stretch` support.
|
|
12
|
+
|
|
13
|
+
## 9.7.4
|
|
14
|
+
* Fix warning text (by Dmitry Ishkov).
|
|
15
|
+
|
|
4
16
|
## 9.7.3
|
|
5
17
|
* Fix compatibility with PostCSS Modules.
|
|
6
18
|
|
package/README.md
CHANGED
|
@@ -75,30 +75,45 @@ Twitter account for news and releases: [@autoprefixer].
|
|
|
75
75
|
|
|
76
76
|
## Contents
|
|
77
77
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
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)
|
|
116
|
+
* [For Enterprise](#for-enterprise)
|
|
102
117
|
|
|
103
118
|
## Browsers
|
|
104
119
|
|
|
@@ -432,11 +447,10 @@ and automation.
|
|
|
432
447
|
|
|
433
448
|
If you can’t move to a build tool, you can use text editor plugins:
|
|
434
449
|
|
|
450
|
+
* [Visual Studio Code](https://github.com/mrmlnc/vscode-autoprefixer)
|
|
451
|
+
* [Atom Editor](https://github.com/sindresorhus/atom-autoprefixer)
|
|
435
452
|
* [Sublime Text](https://github.com/sindresorhus/sublime-autoprefixer)
|
|
436
453
|
* [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
454
|
|
|
441
455
|
[Parcel]: https://parceljs.org/
|
|
442
456
|
|
|
@@ -460,7 +474,7 @@ result.warnings().forEach(warn => {
|
|
|
460
474
|
|
|
461
475
|
Every Autoprefixer runner should display these warnings.
|
|
462
476
|
|
|
463
|
-
[PostCSS warning API]:
|
|
477
|
+
[PostCSS warning API]: http://api.postcss.org/Warning.html
|
|
464
478
|
|
|
465
479
|
|
|
466
480
|
## Disabling
|
|
@@ -1097,3 +1111,13 @@ To report a security vulnerability, please use the [Tidelift security contact].
|
|
|
1097
1111
|
Tidelift will coordinate the fix and disclosure.
|
|
1098
1112
|
|
|
1099
1113
|
[Tidelift security contact]: https://tidelift.com/security
|
|
1114
|
+
|
|
1115
|
+
## For Enterprise
|
|
1116
|
+
|
|
1117
|
+
Available as part of the Tidelift Subscription.
|
|
1118
|
+
|
|
1119
|
+
The maintainers of `autoprefixer` and thousands of other packages are working
|
|
1120
|
+
with Tidelift to deliver commercial support and maintenance for the open source
|
|
1121
|
+
dependencies you use to build your applications. Save time, reduce risk,
|
|
1122
|
+
and improve code health, while paying the maintainers of the exact dependencies
|
|
1123
|
+
you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-autoprefixer?utm_source=npm-autoprefixer&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
|
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(o); 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,
|
|
51
|
-
var
|
|
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,
|
|
69
|
-
var
|
|
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
|
}
|
|
@@ -337,6 +321,14 @@ f(require('caniuse-lite/data/features/css-placeholder'), function (browsers) {
|
|
|
337
321
|
feature: 'css-placeholder',
|
|
338
322
|
browsers: browsers.concat(['ie 10 old', 'ie 11 old', 'firefox 18 old'])
|
|
339
323
|
});
|
|
324
|
+
}); // Placeholder-shown selector
|
|
325
|
+
|
|
326
|
+
f(require('caniuse-lite/data/features/css-placeholder-shown'), function (browsers) {
|
|
327
|
+
prefix([':placeholder-shown'], {
|
|
328
|
+
selector: true,
|
|
329
|
+
feature: 'css-placeholder-shown',
|
|
330
|
+
browsers: browsers
|
|
331
|
+
});
|
|
340
332
|
}); // Hyphenation
|
|
341
333
|
|
|
342
334
|
f(require('caniuse-lite/data/features/css-hyphens'), function (browsers) {
|
package/lib/at-rule.js
CHANGED
|
@@ -2,13 +2,17 @@
|
|
|
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(o); 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
|
+
|
|
5
11
|
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
|
6
12
|
|
|
7
13
|
var Prefixer = require('./prefixer');
|
|
8
14
|
|
|
9
|
-
var AtRule =
|
|
10
|
-
/*#__PURE__*/
|
|
11
|
-
function (_Prefixer) {
|
|
15
|
+
var AtRule = /*#__PURE__*/function (_Prefixer) {
|
|
12
16
|
_inheritsLoose(AtRule, _Prefixer);
|
|
13
17
|
|
|
14
18
|
function AtRule() {
|
|
@@ -43,19 +47,8 @@ function (_Prefixer) {
|
|
|
43
47
|
_proto.process = function process(node) {
|
|
44
48
|
var parent = this.parentPrefix(node);
|
|
45
49
|
|
|
46
|
-
for (var _iterator = this.prefixes,
|
|
47
|
-
var
|
|
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;
|
|
50
|
+
for (var _iterator = _createForOfIteratorHelperLoose(this.prefixes), _step; !(_step = _iterator()).done;) {
|
|
51
|
+
var prefix = _step.value;
|
|
59
52
|
|
|
60
53
|
if (!parent || parent === prefix) {
|
|
61
54
|
this.add(node, prefix);
|
package/lib/autoprefixer.js
CHANGED
|
@@ -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
|
|
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(o); 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,
|
|
16
|
-
var
|
|
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,
|
|
56
|
-
var
|
|
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
package/lib/declaration.js
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
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(o); 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
|
+
|
|
5
11
|
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
|
6
12
|
|
|
7
13
|
var Prefixer = require('./prefixer');
|
|
@@ -10,9 +16,7 @@ var Browsers = require('./browsers');
|
|
|
10
16
|
|
|
11
17
|
var utils = require('./utils');
|
|
12
18
|
|
|
13
|
-
var Declaration =
|
|
14
|
-
/*#__PURE__*/
|
|
15
|
-
function (_Prefixer) {
|
|
19
|
+
var Declaration = /*#__PURE__*/function (_Prefixer) {
|
|
16
20
|
_inheritsLoose(Declaration, _Prefixer);
|
|
17
21
|
|
|
18
22
|
function Declaration() {
|
|
@@ -51,19 +55,8 @@ function (_Prefixer) {
|
|
|
51
55
|
;
|
|
52
56
|
|
|
53
57
|
_proto.otherPrefixes = function otherPrefixes(value, prefix) {
|
|
54
|
-
for (var _iterator = Browsers.prefixes(),
|
|
55
|
-
var
|
|
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;
|
|
58
|
+
for (var _iterator = _createForOfIteratorHelperLoose(Browsers.prefixes()), _step; !(_step = _iterator()).done;) {
|
|
59
|
+
var other = _step.value;
|
|
67
60
|
|
|
68
61
|
if (other === prefix) {
|
|
69
62
|
continue;
|
|
@@ -109,19 +102,8 @@ function (_Prefixer) {
|
|
|
109
102
|
|
|
110
103
|
var max = 0;
|
|
111
104
|
|
|
112
|
-
for (var _iterator2 = prefixes,
|
|
113
|
-
var
|
|
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;
|
|
105
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose(prefixes), _step2; !(_step2 = _iterator2()).done;) {
|
|
106
|
+
var prefix = _step2.value;
|
|
125
107
|
prefix = utils.removeNote(prefix);
|
|
126
108
|
|
|
127
109
|
if (prefix.length > max) {
|
|
@@ -10,9 +10,7 @@ var flexSpec = require('./flex-spec');
|
|
|
10
10
|
|
|
11
11
|
var Declaration = require('../declaration');
|
|
12
12
|
|
|
13
|
-
var AlignContent =
|
|
14
|
-
/*#__PURE__*/
|
|
15
|
-
function (_Declaration) {
|
|
13
|
+
var AlignContent = /*#__PURE__*/function (_Declaration) {
|
|
16
14
|
_inheritsLoose(AlignContent, _Declaration);
|
|
17
15
|
|
|
18
16
|
function AlignContent() {
|
package/lib/hacks/align-items.js
CHANGED
|
@@ -10,9 +10,7 @@ var flexSpec = require('./flex-spec');
|
|
|
10
10
|
|
|
11
11
|
var Declaration = require('../declaration');
|
|
12
12
|
|
|
13
|
-
var AlignItems =
|
|
14
|
-
/*#__PURE__*/
|
|
15
|
-
function (_Declaration) {
|
|
13
|
+
var AlignItems = /*#__PURE__*/function (_Declaration) {
|
|
16
14
|
_inheritsLoose(AlignItems, _Declaration);
|
|
17
15
|
|
|
18
16
|
function AlignItems() {
|
package/lib/hacks/align-self.js
CHANGED
|
@@ -10,9 +10,7 @@ var flexSpec = require('./flex-spec');
|
|
|
10
10
|
|
|
11
11
|
var Declaration = require('../declaration');
|
|
12
12
|
|
|
13
|
-
var AlignSelf =
|
|
14
|
-
/*#__PURE__*/
|
|
15
|
-
function (_Declaration) {
|
|
13
|
+
var AlignSelf = /*#__PURE__*/function (_Declaration) {
|
|
16
14
|
_inheritsLoose(AlignSelf, _Declaration);
|
|
17
15
|
|
|
18
16
|
function AlignSelf() {
|
package/lib/hacks/animation.js
CHANGED
|
@@ -8,9 +8,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
8
8
|
|
|
9
9
|
var Declaration = require('../declaration');
|
|
10
10
|
|
|
11
|
-
var Animation =
|
|
12
|
-
/*#__PURE__*/
|
|
13
|
-
function (_Declaration) {
|
|
11
|
+
var Animation = /*#__PURE__*/function (_Declaration) {
|
|
14
12
|
_inheritsLoose(Animation, _Declaration);
|
|
15
13
|
|
|
16
14
|
function Animation() {
|
package/lib/hacks/appearance.js
CHANGED
|
@@ -10,9 +10,7 @@ var Declaration = require('../declaration');
|
|
|
10
10
|
|
|
11
11
|
var utils = require('../utils');
|
|
12
12
|
|
|
13
|
-
var Appearance =
|
|
14
|
-
/*#__PURE__*/
|
|
15
|
-
function (_Declaration) {
|
|
13
|
+
var Appearance = /*#__PURE__*/function (_Declaration) {
|
|
16
14
|
_inheritsLoose(Appearance, _Declaration);
|
|
17
15
|
|
|
18
16
|
function Appearance(name, prefixes, all) {
|
|
@@ -10,9 +10,7 @@ var Declaration = require('../declaration');
|
|
|
10
10
|
|
|
11
11
|
var utils = require('../utils');
|
|
12
12
|
|
|
13
|
-
var BackdropFilter =
|
|
14
|
-
/*#__PURE__*/
|
|
15
|
-
function (_Declaration) {
|
|
13
|
+
var BackdropFilter = /*#__PURE__*/function (_Declaration) {
|
|
16
14
|
_inheritsLoose(BackdropFilter, _Declaration);
|
|
17
15
|
|
|
18
16
|
function BackdropFilter(name, prefixes, all) {
|
|
@@ -10,9 +10,7 @@ var Declaration = require('../declaration');
|
|
|
10
10
|
|
|
11
11
|
var utils = require('../utils');
|
|
12
12
|
|
|
13
|
-
var BackgroundClip =
|
|
14
|
-
/*#__PURE__*/
|
|
15
|
-
function (_Declaration) {
|
|
13
|
+
var BackgroundClip = /*#__PURE__*/function (_Declaration) {
|
|
16
14
|
_inheritsLoose(BackgroundClip, _Declaration);
|
|
17
15
|
|
|
18
16
|
function BackgroundClip(name, prefixes, all) {
|
|
@@ -8,9 +8,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
8
8
|
|
|
9
9
|
var Declaration = require('../declaration');
|
|
10
10
|
|
|
11
|
-
var BackgroundSize =
|
|
12
|
-
/*#__PURE__*/
|
|
13
|
-
function (_Declaration) {
|
|
11
|
+
var BackgroundSize = /*#__PURE__*/function (_Declaration) {
|
|
14
12
|
_inheritsLoose(BackgroundSize, _Declaration);
|
|
15
13
|
|
|
16
14
|
function BackgroundSize() {
|
|
@@ -8,9 +8,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
8
8
|
|
|
9
9
|
var Declaration = require('../declaration');
|
|
10
10
|
|
|
11
|
-
var BlockLogical =
|
|
12
|
-
/*#__PURE__*/
|
|
13
|
-
function (_Declaration) {
|
|
11
|
+
var BlockLogical = /*#__PURE__*/function (_Declaration) {
|
|
14
12
|
_inheritsLoose(BlockLogical, _Declaration);
|
|
15
13
|
|
|
16
14
|
function BlockLogical() {
|
|
@@ -8,9 +8,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
8
8
|
|
|
9
9
|
var Declaration = require('../declaration');
|
|
10
10
|
|
|
11
|
-
var BorderImage =
|
|
12
|
-
/*#__PURE__*/
|
|
13
|
-
function (_Declaration) {
|
|
11
|
+
var BorderImage = /*#__PURE__*/function (_Declaration) {
|
|
14
12
|
_inheritsLoose(BorderImage, _Declaration);
|
|
15
13
|
|
|
16
14
|
function BorderImage() {
|
|
@@ -8,9 +8,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
8
8
|
|
|
9
9
|
var Declaration = require('../declaration');
|
|
10
10
|
|
|
11
|
-
var BorderRadius =
|
|
12
|
-
/*#__PURE__*/
|
|
13
|
-
function (_Declaration) {
|
|
11
|
+
var BorderRadius = /*#__PURE__*/function (_Declaration) {
|
|
14
12
|
_inheritsLoose(BorderRadius, _Declaration);
|
|
15
13
|
|
|
16
14
|
function BorderRadius() {
|
package/lib/hacks/break-props.js
CHANGED
|
@@ -8,9 +8,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
8
8
|
|
|
9
9
|
var Declaration = require('../declaration');
|
|
10
10
|
|
|
11
|
-
var BreakProps =
|
|
12
|
-
/*#__PURE__*/
|
|
13
|
-
function (_Declaration) {
|
|
11
|
+
var BreakProps = /*#__PURE__*/function (_Declaration) {
|
|
14
12
|
_inheritsLoose(BreakProps, _Declaration);
|
|
15
13
|
|
|
16
14
|
function BreakProps() {
|
|
@@ -8,9 +8,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
8
8
|
|
|
9
9
|
var Declaration = require('../declaration');
|
|
10
10
|
|
|
11
|
-
var ColorAdjust =
|
|
12
|
-
/*#__PURE__*/
|
|
13
|
-
function (_Declaration) {
|
|
11
|
+
var ColorAdjust = /*#__PURE__*/function (_Declaration) {
|
|
14
12
|
_inheritsLoose(ColorAdjust, _Declaration);
|
|
15
13
|
|
|
16
14
|
function ColorAdjust() {
|
package/lib/hacks/cross-fade.js
CHANGED
|
@@ -12,9 +12,7 @@ var OldValue = require('../old-value');
|
|
|
12
12
|
|
|
13
13
|
var Value = require('../value');
|
|
14
14
|
|
|
15
|
-
var DisplayFlex =
|
|
16
|
-
/*#__PURE__*/
|
|
17
|
-
function (_Value) {
|
|
15
|
+
var DisplayFlex = /*#__PURE__*/function (_Value) {
|
|
18
16
|
_inheritsLoose(DisplayFlex, _Value);
|
|
19
17
|
|
|
20
18
|
function DisplayFlex(name, prefixes) {
|
|
@@ -8,9 +8,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
8
8
|
|
|
9
9
|
var Value = require('../value');
|
|
10
10
|
|
|
11
|
-
var DisplayGrid =
|
|
12
|
-
/*#__PURE__*/
|
|
13
|
-
function (_Value) {
|
|
11
|
+
var DisplayGrid = /*#__PURE__*/function (_Value) {
|
|
14
12
|
_inheritsLoose(DisplayGrid, _Value);
|
|
15
13
|
|
|
16
14
|
function DisplayGrid(name, prefixes) {
|
|
@@ -8,9 +8,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
8
8
|
|
|
9
9
|
var Value = require('../value');
|
|
10
10
|
|
|
11
|
-
var FilterValue =
|
|
12
|
-
/*#__PURE__*/
|
|
13
|
-
function (_Value) {
|
|
11
|
+
var FilterValue = /*#__PURE__*/function (_Value) {
|
|
14
12
|
_inheritsLoose(FilterValue, _Value);
|
|
15
13
|
|
|
16
14
|
function FilterValue(name, prefixes) {
|
package/lib/hacks/filter.js
CHANGED
|
@@ -8,9 +8,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
8
8
|
|
|
9
9
|
var Declaration = require('../declaration');
|
|
10
10
|
|
|
11
|
-
var Filter =
|
|
12
|
-
/*#__PURE__*/
|
|
13
|
-
function (_Declaration) {
|
|
11
|
+
var Filter = /*#__PURE__*/function (_Declaration) {
|
|
14
12
|
_inheritsLoose(Filter, _Declaration);
|
|
15
13
|
|
|
16
14
|
function Filter() {
|
package/lib/hacks/flex-basis.js
CHANGED
|
@@ -10,9 +10,7 @@ var flexSpec = require('./flex-spec');
|
|
|
10
10
|
|
|
11
11
|
var Declaration = require('../declaration');
|
|
12
12
|
|
|
13
|
-
var FlexBasis =
|
|
14
|
-
/*#__PURE__*/
|
|
15
|
-
function (_Declaration) {
|
|
13
|
+
var FlexBasis = /*#__PURE__*/function (_Declaration) {
|
|
16
14
|
_inheritsLoose(FlexBasis, _Declaration);
|
|
17
15
|
|
|
18
16
|
function FlexBasis() {
|
|
@@ -10,9 +10,7 @@ var flexSpec = require('./flex-spec');
|
|
|
10
10
|
|
|
11
11
|
var Declaration = require('../declaration');
|
|
12
12
|
|
|
13
|
-
var FlexDirection =
|
|
14
|
-
/*#__PURE__*/
|
|
15
|
-
function (_Declaration) {
|
|
13
|
+
var FlexDirection = /*#__PURE__*/function (_Declaration) {
|
|
16
14
|
_inheritsLoose(FlexDirection, _Declaration);
|
|
17
15
|
|
|
18
16
|
function FlexDirection() {
|
package/lib/hacks/flex-flow.js
CHANGED
|
@@ -10,9 +10,7 @@ var flexSpec = require('./flex-spec');
|
|
|
10
10
|
|
|
11
11
|
var Declaration = require('../declaration');
|
|
12
12
|
|
|
13
|
-
var FlexFlow =
|
|
14
|
-
/*#__PURE__*/
|
|
15
|
-
function (_Declaration) {
|
|
13
|
+
var FlexFlow = /*#__PURE__*/function (_Declaration) {
|
|
16
14
|
_inheritsLoose(FlexFlow, _Declaration);
|
|
17
15
|
|
|
18
16
|
function FlexFlow() {
|