autoprefixer 8.6.5 → 9.1.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.
Files changed (74) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +1 -1
  3. package/bin/autoprefixer +16 -16
  4. package/data/prefixes.js +435 -427
  5. package/lib/at-rule.js +38 -38
  6. package/lib/autoprefixer.js +92 -92
  7. package/lib/brackets.js +46 -46
  8. package/lib/browsers.js +56 -58
  9. package/lib/declaration.js +161 -161
  10. package/lib/hacks/align-content.js +49 -50
  11. package/lib/hacks/align-items.js +46 -47
  12. package/lib/hacks/align-self.js +47 -48
  13. package/lib/hacks/animation.js +18 -18
  14. package/lib/hacks/appearance.js +17 -17
  15. package/lib/hacks/background-clip.js +48 -0
  16. package/lib/hacks/background-size.js +19 -19
  17. package/lib/hacks/block-logical.js +31 -27
  18. package/lib/hacks/border-image.js +16 -16
  19. package/lib/hacks/border-radius.js +43 -43
  20. package/lib/hacks/break-props.js +57 -57
  21. package/lib/hacks/color-adjust.js +21 -21
  22. package/lib/hacks/cross-fade.js +37 -37
  23. package/lib/hacks/display-flex.js +58 -58
  24. package/lib/hacks/display-grid.js +18 -18
  25. package/lib/hacks/filter-value.js +12 -12
  26. package/lib/hacks/filter.js +16 -16
  27. package/lib/hacks/flex-basis.js +42 -42
  28. package/lib/hacks/flex-direction.js +87 -87
  29. package/lib/hacks/flex-flow.js +60 -60
  30. package/lib/hacks/flex-grow.js +31 -31
  31. package/lib/hacks/flex-shrink.js +42 -42
  32. package/lib/hacks/flex-spec.js +12 -12
  33. package/lib/hacks/flex-wrap.js +19 -19
  34. package/lib/hacks/flex.js +61 -62
  35. package/lib/hacks/fullscreen.js +23 -23
  36. package/lib/hacks/gradient.js +490 -490
  37. package/lib/hacks/grid-area.js +28 -28
  38. package/lib/hacks/grid-column-align.js +27 -27
  39. package/lib/hacks/grid-end.js +47 -47
  40. package/lib/hacks/grid-row-align.js +27 -27
  41. package/lib/hacks/grid-row-column.js +25 -25
  42. package/lib/hacks/grid-rows-columns.js +36 -36
  43. package/lib/hacks/grid-start.js +32 -32
  44. package/lib/hacks/grid-template-areas.js +82 -78
  45. package/lib/hacks/grid-template.js +69 -65
  46. package/lib/hacks/grid-utils.js +450 -308
  47. package/lib/hacks/image-rendering.js +46 -46
  48. package/lib/hacks/image-set.js +19 -19
  49. package/lib/hacks/inline-logical.js +21 -21
  50. package/lib/hacks/intrinsic.js +48 -48
  51. package/lib/hacks/justify-content.js +63 -64
  52. package/lib/hacks/mask-border.js +25 -25
  53. package/lib/hacks/order.js +43 -43
  54. package/lib/hacks/overscroll-behavior.js +32 -32
  55. package/lib/hacks/pixelated.js +36 -36
  56. package/lib/hacks/placeholder.js +36 -36
  57. package/lib/hacks/text-decoration.js +17 -17
  58. package/lib/hacks/text-emphasis-position.js +15 -15
  59. package/lib/hacks/transform-decl.js +92 -92
  60. package/lib/hacks/writing-mode.js +24 -24
  61. package/lib/info.js +135 -135
  62. package/lib/old-selector.js +69 -69
  63. package/lib/old-value.js +15 -15
  64. package/lib/prefixer.js +125 -126
  65. package/lib/prefixes.js +351 -351
  66. package/lib/processor.js +396 -396
  67. package/lib/resolution.js +110 -107
  68. package/lib/selector.js +101 -101
  69. package/lib/supports.js +245 -246
  70. package/lib/transition.js +394 -393
  71. package/lib/utils.js +61 -61
  72. package/lib/value.js +94 -94
  73. package/package.json +7 -4
  74. package/AUTHORS +0 -160
@@ -13,249 +13,249 @@ var Browsers = require('./browsers');
13
13
  var utils = require('./utils');
14
14
 
15
15
  var Declaration = function (_Prefixer) {
16
- _inherits(Declaration, _Prefixer);
16
+ _inherits(Declaration, _Prefixer);
17
17
 
18
- function Declaration() {
19
- _classCallCheck(this, Declaration);
18
+ function Declaration() {
19
+ _classCallCheck(this, Declaration);
20
20
 
21
- return _possibleConstructorReturn(this, _Prefixer.apply(this, arguments));
22
- }
21
+ return _possibleConstructorReturn(this, _Prefixer.apply(this, arguments));
22
+ }
23
23
 
24
- /**
24
+ /**
25
25
  * Always true, because we already get prefixer by property name
26
26
  */
27
- Declaration.prototype.check = function check() /* decl */{
28
- return true;
29
- };
27
+ Declaration.prototype.check = function check() /* decl */{
28
+ return true;
29
+ };
30
30
 
31
- /**
31
+ /**
32
32
  * Return prefixed version of property
33
33
  */
34
34
 
35
35
 
36
- Declaration.prototype.prefixed = function prefixed(prop, prefix) {
37
- return prefix + prop;
38
- };
36
+ Declaration.prototype.prefixed = function prefixed(prop, prefix) {
37
+ return prefix + prop;
38
+ };
39
39
 
40
- /**
40
+ /**
41
41
  * Return unprefixed version of property
42
42
  */
43
43
 
44
44
 
45
- Declaration.prototype.normalize = function normalize(prop) {
46
- return prop;
47
- };
45
+ Declaration.prototype.normalize = function normalize(prop) {
46
+ return prop;
47
+ };
48
48
 
49
- /**
49
+ /**
50
50
  * Check `value`, that it contain other prefixes, rather than `prefix`
51
51
  */
52
52
 
53
53
 
54
- Declaration.prototype.otherPrefixes = function otherPrefixes(value, prefix) {
55
- for (var _iterator = Browsers.prefixes(), _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
56
- var _ref;
57
-
58
- if (_isArray) {
59
- if (_i >= _iterator.length) break;
60
- _ref = _iterator[_i++];
61
- } else {
62
- _i = _iterator.next();
63
- if (_i.done) break;
64
- _ref = _i.value;
65
- }
66
-
67
- var other = _ref;
68
-
69
- if (other === prefix) {
70
- continue;
71
- }
72
- if (value.indexOf(other) !== -1) {
73
- return true;
74
- }
75
- }
76
- return false;
77
- };
78
-
79
- /**
54
+ Declaration.prototype.otherPrefixes = function otherPrefixes(value, prefix) {
55
+ for (var _iterator = Browsers.prefixes(), _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
56
+ var _ref;
57
+
58
+ if (_isArray) {
59
+ if (_i >= _iterator.length) break;
60
+ _ref = _iterator[_i++];
61
+ } else {
62
+ _i = _iterator.next();
63
+ if (_i.done) break;
64
+ _ref = _i.value;
65
+ }
66
+
67
+ var other = _ref;
68
+
69
+ if (other === prefix) {
70
+ continue;
71
+ }
72
+ if (value.indexOf(other) !== -1) {
73
+ return true;
74
+ }
75
+ }
76
+ return false;
77
+ };
78
+
79
+ /**
80
80
  * Set prefix to declaration
81
81
  */
82
82
 
83
83
 
84
- Declaration.prototype.set = function set(decl, prefix) {
85
- decl.prop = this.prefixed(decl.prop, prefix);
86
- return decl;
87
- };
84
+ Declaration.prototype.set = function set(decl, prefix) {
85
+ decl.prop = this.prefixed(decl.prop, prefix);
86
+ return decl;
87
+ };
88
88
 
89
- /**
89
+ /**
90
90
  * Should we use visual cascade for prefixes
91
91
  */
92
92
 
93
93
 
94
- Declaration.prototype.needCascade = function needCascade(decl) {
95
- if (!decl._autoprefixerCascade) {
96
- decl._autoprefixerCascade = this.all.options.cascade !== false && decl.raw('before').indexOf('\n') !== -1;
97
- }
98
- return decl._autoprefixerCascade;
99
- };
94
+ Declaration.prototype.needCascade = function needCascade(decl) {
95
+ if (!decl._autoprefixerCascade) {
96
+ decl._autoprefixerCascade = this.all.options.cascade !== false && decl.raw('before').indexOf('\n') !== -1;
97
+ }
98
+ return decl._autoprefixerCascade;
99
+ };
100
100
 
101
- /**
101
+ /**
102
102
  * Return maximum length of possible prefixed property
103
103
  */
104
104
 
105
105
 
106
- Declaration.prototype.maxPrefixed = function maxPrefixed(prefixes, decl) {
107
- if (decl._autoprefixerMax) {
108
- return decl._autoprefixerMax;
109
- }
110
-
111
- var max = 0;
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;
106
+ Declaration.prototype.maxPrefixed = function maxPrefixed(prefixes, decl) {
107
+ if (decl._autoprefixerMax) {
108
+ return decl._autoprefixerMax;
109
+ }
125
110
 
126
- prefix = utils.removeNote(prefix);
127
- if (prefix.length > max) {
128
- max = prefix.length;
129
- }
130
- }
131
- decl._autoprefixerMax = max;
111
+ var max = 0;
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;
125
+
126
+ prefix = utils.removeNote(prefix);
127
+ if (prefix.length > max) {
128
+ max = prefix.length;
129
+ }
130
+ }
131
+ decl._autoprefixerMax = max;
132
132
 
133
- return decl._autoprefixerMax;
134
- };
133
+ return decl._autoprefixerMax;
134
+ };
135
135
 
136
- /**
136
+ /**
137
137
  * Calculate indentation to create visual cascade
138
138
  */
139
139
 
140
140
 
141
- Declaration.prototype.calcBefore = function calcBefore(prefixes, decl) {
142
- var prefix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
141
+ Declaration.prototype.calcBefore = function calcBefore(prefixes, decl) {
142
+ var prefix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
143
143
 
144
- var max = this.maxPrefixed(prefixes, decl);
145
- var diff = max - utils.removeNote(prefix).length;
144
+ var max = this.maxPrefixed(prefixes, decl);
145
+ var diff = max - utils.removeNote(prefix).length;
146
146
 
147
- var before = decl.raw('before');
148
- if (diff > 0) {
149
- before += Array(diff).fill(' ').join('');
150
- }
147
+ var before = decl.raw('before');
148
+ if (diff > 0) {
149
+ before += Array(diff).fill(' ').join('');
150
+ }
151
151
 
152
- return before;
153
- };
152
+ return before;
153
+ };
154
154
 
155
- /**
155
+ /**
156
156
  * Remove visual cascade
157
157
  */
158
158
 
159
159
 
160
- Declaration.prototype.restoreBefore = function restoreBefore(decl) {
161
- var lines = decl.raw('before').split('\n');
162
- var min = lines[lines.length - 1];
160
+ Declaration.prototype.restoreBefore = function restoreBefore(decl) {
161
+ var lines = decl.raw('before').split('\n');
162
+ var min = lines[lines.length - 1];
163
163
 
164
- this.all.group(decl).up(function (prefixed) {
165
- var array = prefixed.raw('before').split('\n');
166
- var last = array[array.length - 1];
167
- if (last.length < min.length) {
168
- min = last;
169
- }
170
- });
164
+ this.all.group(decl).up(function (prefixed) {
165
+ var array = prefixed.raw('before').split('\n');
166
+ var last = array[array.length - 1];
167
+ if (last.length < min.length) {
168
+ min = last;
169
+ }
170
+ });
171
171
 
172
- lines[lines.length - 1] = min;
173
- decl.raws.before = lines.join('\n');
174
- };
172
+ lines[lines.length - 1] = min;
173
+ decl.raws.before = lines.join('\n');
174
+ };
175
175
 
176
- /**
176
+ /**
177
177
  * Clone and insert new declaration
178
178
  */
179
179
 
180
180
 
181
- Declaration.prototype.insert = function insert(decl, prefix, prefixes) {
182
- var cloned = this.set(this.clone(decl), prefix);
183
- if (!cloned) return undefined;
181
+ Declaration.prototype.insert = function insert(decl, prefix, prefixes) {
182
+ var cloned = this.set(this.clone(decl), prefix);
183
+ if (!cloned) return undefined;
184
184
 
185
- var already = decl.parent.some(function (i) {
186
- return i.prop === cloned.prop && i.value === cloned.value;
187
- });
188
- if (already) {
189
- return undefined;
190
- }
185
+ var already = decl.parent.some(function (i) {
186
+ return i.prop === cloned.prop && i.value === cloned.value;
187
+ });
188
+ if (already) {
189
+ return undefined;
190
+ }
191
191
 
192
- if (this.needCascade(decl)) {
193
- cloned.raws.before = this.calcBefore(prefixes, decl, prefix);
194
- }
195
- return decl.parent.insertBefore(decl, cloned);
196
- };
192
+ if (this.needCascade(decl)) {
193
+ cloned.raws.before = this.calcBefore(prefixes, decl, prefix);
194
+ }
195
+ return decl.parent.insertBefore(decl, cloned);
196
+ };
197
197
 
198
- /**
198
+ /**
199
199
  * Did this declaration has this prefix above
200
200
  */
201
201
 
202
202
 
203
- Declaration.prototype.isAlready = function isAlready(decl, prefixed) {
204
- var already = this.all.group(decl).up(function (i) {
205
- return i.prop === prefixed;
206
- });
207
- if (!already) {
208
- already = this.all.group(decl).down(function (i) {
209
- return i.prop === prefixed;
210
- });
211
- }
212
- return already;
213
- };
203
+ Declaration.prototype.isAlready = function isAlready(decl, prefixed) {
204
+ var already = this.all.group(decl).up(function (i) {
205
+ return i.prop === prefixed;
206
+ });
207
+ if (!already) {
208
+ already = this.all.group(decl).down(function (i) {
209
+ return i.prop === prefixed;
210
+ });
211
+ }
212
+ return already;
213
+ };
214
214
 
215
- /**
215
+ /**
216
216
  * Clone and add prefixes for declaration
217
217
  */
218
218
 
219
219
 
220
- Declaration.prototype.add = function add(decl, prefix, prefixes, result) {
221
- var prefixed = this.prefixed(decl.prop, prefix);
222
- if (this.isAlready(decl, prefixed) || this.otherPrefixes(decl.value, prefix)) {
223
- return undefined;
224
- }
225
- return this.insert(decl, prefix, prefixes, result);
226
- };
220
+ Declaration.prototype.add = function add(decl, prefix, prefixes, result) {
221
+ var prefixed = this.prefixed(decl.prop, prefix);
222
+ if (this.isAlready(decl, prefixed) || this.otherPrefixes(decl.value, prefix)) {
223
+ return undefined;
224
+ }
225
+ return this.insert(decl, prefix, prefixes, result);
226
+ };
227
227
 
228
- /**
228
+ /**
229
229
  * Add spaces for visual cascade
230
230
  */
231
231
 
232
232
 
233
- Declaration.prototype.process = function process(decl, result) {
234
- if (!this.needCascade(decl)) {
235
- _Prefixer.prototype.process.call(this, decl, result);
236
- return;
237
- }
233
+ Declaration.prototype.process = function process(decl, result) {
234
+ if (!this.needCascade(decl)) {
235
+ _Prefixer.prototype.process.call(this, decl, result);
236
+ return;
237
+ }
238
238
 
239
- var prefixes = _Prefixer.prototype.process.call(this, decl, result);
239
+ var prefixes = _Prefixer.prototype.process.call(this, decl, result);
240
240
 
241
- if (!prefixes || !prefixes.length) {
242
- return;
243
- }
241
+ if (!prefixes || !prefixes.length) {
242
+ return;
243
+ }
244
244
 
245
- this.restoreBefore(decl);
246
- decl.raws.before = this.calcBefore(prefixes, decl);
247
- };
245
+ this.restoreBefore(decl);
246
+ decl.raws.before = this.calcBefore(prefixes, decl);
247
+ };
248
248
 
249
- /**
249
+ /**
250
250
  * Return list of prefixed properties to clean old prefixes
251
251
  */
252
252
 
253
253
 
254
- Declaration.prototype.old = function old(prop, prefix) {
255
- return [this.prefixed(prop, prefix)];
256
- };
254
+ Declaration.prototype.old = function old(prop, prefix) {
255
+ return [this.prefixed(prop, prefix)];
256
+ };
257
257
 
258
- return Declaration;
258
+ return Declaration;
259
259
  }(Prefixer);
260
260
 
261
261
  module.exports = Declaration;
@@ -12,74 +12,73 @@ var flexSpec = require('./flex-spec');
12
12
  var Declaration = require('../declaration');
13
13
 
14
14
  var AlignContent = function (_Declaration) {
15
- _inherits(AlignContent, _Declaration);
15
+ _inherits(AlignContent, _Declaration);
16
16
 
17
- function AlignContent() {
18
- _classCallCheck(this, AlignContent);
17
+ function AlignContent() {
18
+ _classCallCheck(this, AlignContent);
19
19
 
20
- return _possibleConstructorReturn(this, _Declaration.apply(this, arguments));
21
- }
20
+ return _possibleConstructorReturn(this, _Declaration.apply(this, arguments));
21
+ }
22
22
 
23
- /**
24
- * Change property name for 2012 spec
25
- */
26
- AlignContent.prototype.prefixed = function prefixed(prop, prefix) {
27
- var spec = void 0;
23
+ /**
24
+ * Change property name for 2012 spec
25
+ */
26
+ AlignContent.prototype.prefixed = function prefixed(prop, prefix) {
27
+ var spec = void 0;
28
28
 
29
- var _flexSpec = flexSpec(prefix);
29
+ var _flexSpec = flexSpec(prefix);
30
30
 
31
- spec = _flexSpec[0];
32
- prefix = _flexSpec[1];
31
+ spec = _flexSpec[0];
32
+ prefix = _flexSpec[1];
33
33
 
34
- if (spec === 2012) {
35
- return prefix + 'flex-line-pack';
36
- } else {
37
- return _Declaration.prototype.prefixed.call(this, prop, prefix);
38
- }
39
- };
34
+ if (spec === 2012) {
35
+ return prefix + 'flex-line-pack';
36
+ } else {
37
+ return _Declaration.prototype.prefixed.call(this, prop, prefix);
38
+ }
39
+ };
40
40
 
41
- /**
42
- * Return property name by final spec
43
- */
41
+ /**
42
+ * Return property name by final spec
43
+ */
44
44
 
45
45
 
46
- AlignContent.prototype.normalize = function normalize() {
47
- return 'align-content';
48
- };
46
+ AlignContent.prototype.normalize = function normalize() {
47
+ return 'align-content';
48
+ };
49
49
 
50
- /**
51
- * Change value for 2012 spec and ignore prefix for 2009
52
- */
50
+ /**
51
+ * Change value for 2012 spec and ignore prefix for 2009
52
+ */
53
53
 
54
54
 
55
- AlignContent.prototype.set = function set(decl, prefix) {
56
- var spec = flexSpec(prefix)[0];
57
- if (spec === 2012) {
58
- decl.value = AlignContent.oldValues[decl.value] || decl.value;
59
- return _Declaration.prototype.set.call(this, decl, prefix);
60
- } else if (spec === 'final') {
61
- return _Declaration.prototype.set.call(this, decl, prefix);
62
- }
63
- return undefined;
64
- };
55
+ AlignContent.prototype.set = function set(decl, prefix) {
56
+ var spec = flexSpec(prefix)[0];
57
+ if (spec === 2012) {
58
+ decl.value = AlignContent.oldValues[decl.value] || decl.value;
59
+ return _Declaration.prototype.set.call(this, decl, prefix);
60
+ } else if (spec === 'final') {
61
+ return _Declaration.prototype.set.call(this, decl, prefix);
62
+ }
63
+ return undefined;
64
+ };
65
65
 
66
- return AlignContent;
66
+ return AlignContent;
67
67
  }(Declaration);
68
68
 
69
69
  Object.defineProperty(AlignContent, 'names', {
70
- enumerable: true,
71
- writable: true,
72
- value: ['align-content', 'flex-line-pack']
70
+ enumerable: true,
71
+ writable: true,
72
+ value: ['align-content', 'flex-line-pack']
73
73
  });
74
74
  Object.defineProperty(AlignContent, 'oldValues', {
75
- enumerable: true,
76
- writable: true,
77
- value: {
78
- 'flex-end': 'end',
79
- 'flex-start': 'start',
80
- 'space-between': 'justify',
81
- 'space-around': 'distribute'
82
- }
75
+ enumerable: true,
76
+ writable: true,
77
+ value: {
78
+ 'flex-end': 'end',
79
+ 'flex-start': 'start',
80
+ 'space-between': 'justify',
81
+ 'space-around': 'distribute' }
83
82
  });
84
83
 
85
84
 
@@ -12,71 +12,70 @@ var flexSpec = require('./flex-spec');
12
12
  var Declaration = require('../declaration');
13
13
 
14
14
  var AlignItems = function (_Declaration) {
15
- _inherits(AlignItems, _Declaration);
15
+ _inherits(AlignItems, _Declaration);
16
16
 
17
- function AlignItems() {
18
- _classCallCheck(this, AlignItems);
17
+ function AlignItems() {
18
+ _classCallCheck(this, AlignItems);
19
19
 
20
- return _possibleConstructorReturn(this, _Declaration.apply(this, arguments));
21
- }
20
+ return _possibleConstructorReturn(this, _Declaration.apply(this, arguments));
21
+ }
22
22
 
23
- /**
24
- * Change property name for 2009 and 2012 specs
25
- */
26
- AlignItems.prototype.prefixed = function prefixed(prop, prefix) {
27
- var spec = void 0;
23
+ /**
24
+ * Change property name for 2009 and 2012 specs
25
+ */
26
+ AlignItems.prototype.prefixed = function prefixed(prop, prefix) {
27
+ var spec = void 0;
28
28
 
29
- var _flexSpec = flexSpec(prefix);
29
+ var _flexSpec = flexSpec(prefix);
30
30
 
31
- spec = _flexSpec[0];
32
- prefix = _flexSpec[1];
31
+ spec = _flexSpec[0];
32
+ prefix = _flexSpec[1];
33
33
 
34
- if (spec === 2009) {
35
- return prefix + 'box-align';
36
- } else if (spec === 2012) {
37
- return prefix + 'flex-align';
38
- } else {
39
- return _Declaration.prototype.prefixed.call(this, prop, prefix);
40
- }
41
- };
34
+ if (spec === 2009) {
35
+ return prefix + 'box-align';
36
+ } else if (spec === 2012) {
37
+ return prefix + 'flex-align';
38
+ } else {
39
+ return _Declaration.prototype.prefixed.call(this, prop, prefix);
40
+ }
41
+ };
42
42
 
43
- /**
44
- * Return property name by final spec
45
- */
43
+ /**
44
+ * Return property name by final spec
45
+ */
46
46
 
47
47
 
48
- AlignItems.prototype.normalize = function normalize() {
49
- return 'align-items';
50
- };
48
+ AlignItems.prototype.normalize = function normalize() {
49
+ return 'align-items';
50
+ };
51
51
 
52
- /**
53
- * Change value for 2009 and 2012 specs
54
- */
52
+ /**
53
+ * Change value for 2009 and 2012 specs
54
+ */
55
55
 
56
56
 
57
- AlignItems.prototype.set = function set(decl, prefix) {
58
- var spec = flexSpec(prefix)[0];
59
- if (spec === 2009 || spec === 2012) {
60
- decl.value = AlignItems.oldValues[decl.value] || decl.value;
61
- }
62
- return _Declaration.prototype.set.call(this, decl, prefix);
63
- };
57
+ AlignItems.prototype.set = function set(decl, prefix) {
58
+ var spec = flexSpec(prefix)[0];
59
+ if (spec === 2009 || spec === 2012) {
60
+ decl.value = AlignItems.oldValues[decl.value] || decl.value;
61
+ }
62
+ return _Declaration.prototype.set.call(this, decl, prefix);
63
+ };
64
64
 
65
- return AlignItems;
65
+ return AlignItems;
66
66
  }(Declaration);
67
67
 
68
68
  Object.defineProperty(AlignItems, 'names', {
69
- enumerable: true,
70
- writable: true,
71
- value: ['align-items', 'flex-align', 'box-align']
69
+ enumerable: true,
70
+ writable: true,
71
+ value: ['align-items', 'flex-align', 'box-align']
72
72
  });
73
73
  Object.defineProperty(AlignItems, 'oldValues', {
74
- enumerable: true,
75
- writable: true,
76
- value: {
77
- 'flex-end': 'end',
78
- 'flex-start': 'start'
79
- }
74
+ enumerable: true,
75
+ writable: true,
76
+ value: {
77
+ 'flex-end': 'end',
78
+ 'flex-start': 'start' }
80
79
  });
81
80
 
82
81