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.
- package/CHANGELOG.md +17 -0
- package/README.md +1 -1
- package/bin/autoprefixer +16 -16
- package/data/prefixes.js +435 -427
- package/lib/at-rule.js +38 -38
- package/lib/autoprefixer.js +92 -92
- package/lib/brackets.js +46 -46
- package/lib/browsers.js +56 -58
- package/lib/declaration.js +161 -161
- package/lib/hacks/align-content.js +49 -50
- package/lib/hacks/align-items.js +46 -47
- package/lib/hacks/align-self.js +47 -48
- package/lib/hacks/animation.js +18 -18
- package/lib/hacks/appearance.js +17 -17
- package/lib/hacks/background-clip.js +48 -0
- package/lib/hacks/background-size.js +19 -19
- package/lib/hacks/block-logical.js +31 -27
- package/lib/hacks/border-image.js +16 -16
- package/lib/hacks/border-radius.js +43 -43
- package/lib/hacks/break-props.js +57 -57
- package/lib/hacks/color-adjust.js +21 -21
- package/lib/hacks/cross-fade.js +37 -37
- package/lib/hacks/display-flex.js +58 -58
- package/lib/hacks/display-grid.js +18 -18
- package/lib/hacks/filter-value.js +12 -12
- package/lib/hacks/filter.js +16 -16
- package/lib/hacks/flex-basis.js +42 -42
- package/lib/hacks/flex-direction.js +87 -87
- package/lib/hacks/flex-flow.js +60 -60
- package/lib/hacks/flex-grow.js +31 -31
- package/lib/hacks/flex-shrink.js +42 -42
- package/lib/hacks/flex-spec.js +12 -12
- package/lib/hacks/flex-wrap.js +19 -19
- package/lib/hacks/flex.js +61 -62
- package/lib/hacks/fullscreen.js +23 -23
- package/lib/hacks/gradient.js +490 -490
- package/lib/hacks/grid-area.js +28 -28
- package/lib/hacks/grid-column-align.js +27 -27
- package/lib/hacks/grid-end.js +47 -47
- package/lib/hacks/grid-row-align.js +27 -27
- package/lib/hacks/grid-row-column.js +25 -25
- package/lib/hacks/grid-rows-columns.js +36 -36
- package/lib/hacks/grid-start.js +32 -32
- package/lib/hacks/grid-template-areas.js +82 -78
- package/lib/hacks/grid-template.js +69 -65
- package/lib/hacks/grid-utils.js +450 -308
- package/lib/hacks/image-rendering.js +46 -46
- package/lib/hacks/image-set.js +19 -19
- package/lib/hacks/inline-logical.js +21 -21
- package/lib/hacks/intrinsic.js +48 -48
- package/lib/hacks/justify-content.js +63 -64
- package/lib/hacks/mask-border.js +25 -25
- package/lib/hacks/order.js +43 -43
- package/lib/hacks/overscroll-behavior.js +32 -32
- package/lib/hacks/pixelated.js +36 -36
- package/lib/hacks/placeholder.js +36 -36
- package/lib/hacks/text-decoration.js +17 -17
- package/lib/hacks/text-emphasis-position.js +15 -15
- package/lib/hacks/transform-decl.js +92 -92
- package/lib/hacks/writing-mode.js +24 -24
- package/lib/info.js +135 -135
- package/lib/old-selector.js +69 -69
- package/lib/old-value.js +15 -15
- package/lib/prefixer.js +125 -126
- package/lib/prefixes.js +351 -351
- package/lib/processor.js +396 -396
- package/lib/resolution.js +110 -107
- package/lib/selector.js +101 -101
- package/lib/supports.js +245 -246
- package/lib/transition.js +394 -393
- package/lib/utils.js +61 -61
- package/lib/value.js +94 -94
- package/package.json +7 -4
- package/AUTHORS +0 -160
package/lib/hacks/align-self.js
CHANGED
|
@@ -12,72 +12,71 @@ var flexSpec = require('./flex-spec');
|
|
|
12
12
|
var Declaration = require('../declaration');
|
|
13
13
|
|
|
14
14
|
var AlignSelf = function (_Declaration) {
|
|
15
|
-
|
|
15
|
+
_inherits(AlignSelf, _Declaration);
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
function AlignSelf() {
|
|
18
|
+
_classCallCheck(this, AlignSelf);
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
return _possibleConstructorReturn(this, _Declaration.apply(this, arguments));
|
|
21
|
+
}
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Change property name for 2012 specs
|
|
25
|
+
*/
|
|
26
|
+
AlignSelf.prototype.prefixed = function prefixed(prop, prefix) {
|
|
27
|
+
var spec = void 0;
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
var _flexSpec = flexSpec(prefix);
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
spec = _flexSpec[0];
|
|
32
|
+
prefix = _flexSpec[1];
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
34
|
+
if (spec === 2012) {
|
|
35
|
+
return prefix + 'flex-item-align';
|
|
36
|
+
} else {
|
|
37
|
+
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
/**
|
|
42
|
+
* Return property name by final spec
|
|
43
|
+
*/
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
AlignSelf.prototype.normalize = function normalize() {
|
|
47
|
+
return 'align-self';
|
|
48
|
+
};
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
/**
|
|
51
|
+
* Change value for 2012 spec and ignore prefix for 2009
|
|
52
|
+
*/
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
55
|
+
AlignSelf.prototype.set = function set(decl, prefix) {
|
|
56
|
+
var spec = flexSpec(prefix)[0];
|
|
57
|
+
if (spec === 2012) {
|
|
58
|
+
decl.value = AlignSelf.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
|
-
|
|
66
|
+
return AlignSelf;
|
|
67
67
|
}(Declaration);
|
|
68
68
|
|
|
69
69
|
Object.defineProperty(AlignSelf, 'names', {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
enumerable: true,
|
|
71
|
+
writable: true,
|
|
72
|
+
value: ['align-self', 'flex-item-align']
|
|
73
73
|
});
|
|
74
74
|
Object.defineProperty(AlignSelf, 'oldValues', {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
75
|
+
enumerable: true,
|
|
76
|
+
writable: true,
|
|
77
|
+
value: {
|
|
78
|
+
'flex-end': 'end',
|
|
79
|
+
'flex-start': 'start' }
|
|
81
80
|
});
|
|
82
81
|
|
|
83
82
|
|
package/lib/hacks/animation.js
CHANGED
|
@@ -11,31 +11,31 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
|
|
|
11
11
|
var Declaration = require('../declaration');
|
|
12
12
|
|
|
13
13
|
var Animation = function (_Declaration) {
|
|
14
|
-
|
|
14
|
+
_inherits(Animation, _Declaration);
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
function Animation() {
|
|
17
|
+
_classCallCheck(this, Animation);
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
return _possibleConstructorReturn(this, _Declaration.apply(this, arguments));
|
|
20
|
+
}
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Don’t add prefixes for modern values.
|
|
24
|
+
*/
|
|
25
|
+
Animation.prototype.check = function check(decl) {
|
|
26
|
+
return !decl.value.split(/\s+/).some(function (i) {
|
|
27
|
+
var lower = i.toLowerCase();
|
|
28
|
+
return lower === 'reverse' || lower === 'alternate-reverse';
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
return Animation;
|
|
33
33
|
}(Declaration);
|
|
34
34
|
|
|
35
35
|
Object.defineProperty(Animation, 'names', {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
enumerable: true,
|
|
37
|
+
writable: true,
|
|
38
|
+
value: ['animation', 'animation-direction']
|
|
39
39
|
});
|
|
40
40
|
|
|
41
41
|
|
package/lib/hacks/appearance.js
CHANGED
|
@@ -12,32 +12,32 @@ var Declaration = require('../declaration');
|
|
|
12
12
|
var utils = require('../utils');
|
|
13
13
|
|
|
14
14
|
var Appearance = function (_Declaration) {
|
|
15
|
-
|
|
15
|
+
_inherits(Appearance, _Declaration);
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
function Appearance(name, prefixes, all) {
|
|
18
|
+
_classCallCheck(this, Appearance);
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
var _this = _possibleConstructorReturn(this, _Declaration.call(this, name, prefixes, all));
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
}));
|
|
22
|
+
if (_this.prefixes) {
|
|
23
|
+
_this.prefixes = utils.uniq(_this.prefixes.map(function (i) {
|
|
24
|
+
if (i === '-ms-') {
|
|
25
|
+
return '-webkit-';
|
|
26
|
+
} else {
|
|
27
|
+
return i;
|
|
30
28
|
}
|
|
31
|
-
|
|
29
|
+
}));
|
|
32
30
|
}
|
|
31
|
+
return _this;
|
|
32
|
+
}
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
return Appearance;
|
|
35
35
|
}(Declaration);
|
|
36
36
|
|
|
37
37
|
Object.defineProperty(Appearance, 'names', {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
enumerable: true,
|
|
39
|
+
writable: true,
|
|
40
|
+
value: ['appearance']
|
|
41
41
|
});
|
|
42
42
|
|
|
43
43
|
|
|
@@ -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 _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6
|
+
|
|
7
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
8
|
+
|
|
9
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
|
|
10
|
+
|
|
11
|
+
var Declaration = require('../declaration');
|
|
12
|
+
var utils = require('../utils');
|
|
13
|
+
|
|
14
|
+
var BackgroundClip = function (_Declaration) {
|
|
15
|
+
_inherits(BackgroundClip, _Declaration);
|
|
16
|
+
|
|
17
|
+
function BackgroundClip(name, prefixes, all) {
|
|
18
|
+
_classCallCheck(this, BackgroundClip);
|
|
19
|
+
|
|
20
|
+
var _this = _possibleConstructorReturn(this, _Declaration.call(this, name, prefixes, all));
|
|
21
|
+
|
|
22
|
+
if (_this.prefixes) {
|
|
23
|
+
_this.prefixes = utils.uniq(_this.prefixes.map(function (i) {
|
|
24
|
+
if (i === '-ms-') {
|
|
25
|
+
return '-webkit-';
|
|
26
|
+
} else {
|
|
27
|
+
return i;
|
|
28
|
+
}
|
|
29
|
+
}));
|
|
30
|
+
}
|
|
31
|
+
return _this;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
BackgroundClip.prototype.check = function check(decl) {
|
|
35
|
+
return decl.value.toLowerCase() === 'text';
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
return BackgroundClip;
|
|
39
|
+
}(Declaration);
|
|
40
|
+
|
|
41
|
+
Object.defineProperty(BackgroundClip, 'names', {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
writable: true,
|
|
44
|
+
value: ['background-clip']
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
module.exports = BackgroundClip;
|
|
@@ -11,32 +11,32 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
|
|
|
11
11
|
var Declaration = require('../declaration');
|
|
12
12
|
|
|
13
13
|
var BackgroundSize = function (_Declaration) {
|
|
14
|
-
|
|
14
|
+
_inherits(BackgroundSize, _Declaration);
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
function BackgroundSize() {
|
|
17
|
+
_classCallCheck(this, BackgroundSize);
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
return _possibleConstructorReturn(this, _Declaration.apply(this, arguments));
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Duplication parameter for -webkit- browsers
|
|
24
|
+
*/
|
|
25
|
+
BackgroundSize.prototype.set = function set(decl, prefix) {
|
|
26
|
+
var value = decl.value.toLowerCase();
|
|
27
|
+
if (prefix === '-webkit-' && value.indexOf(' ') === -1 && value !== 'contain' && value !== 'cover') {
|
|
28
|
+
decl.value = decl.value + ' ' + decl.value;
|
|
20
29
|
}
|
|
30
|
+
return _Declaration.prototype.set.call(this, decl, prefix);
|
|
31
|
+
};
|
|
21
32
|
|
|
22
|
-
|
|
23
|
-
* Duplication parameter for -webkit- browsers
|
|
24
|
-
*/
|
|
25
|
-
BackgroundSize.prototype.set = function set(decl, prefix) {
|
|
26
|
-
var value = decl.value.toLowerCase();
|
|
27
|
-
if (prefix === '-webkit-' && value.indexOf(' ') === -1 && value !== 'contain' && value !== 'cover') {
|
|
28
|
-
decl.value = decl.value + ' ' + decl.value;
|
|
29
|
-
}
|
|
30
|
-
return _Declaration.prototype.set.call(this, decl, prefix);
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
return BackgroundSize;
|
|
33
|
+
return BackgroundSize;
|
|
34
34
|
}(Declaration);
|
|
35
35
|
|
|
36
36
|
Object.defineProperty(BackgroundSize, 'names', {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
enumerable: true,
|
|
38
|
+
writable: true,
|
|
39
|
+
value: ['background-size']
|
|
40
40
|
});
|
|
41
41
|
|
|
42
42
|
|
|
@@ -11,41 +11,45 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
|
|
|
11
11
|
var Declaration = require('../declaration');
|
|
12
12
|
|
|
13
13
|
var BlockLogical = function (_Declaration) {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
_inherits(BlockLogical, _Declaration);
|
|
15
|
+
|
|
16
|
+
function BlockLogical() {
|
|
17
|
+
_classCallCheck(this, BlockLogical);
|
|
18
|
+
|
|
19
|
+
return _possibleConstructorReturn(this, _Declaration.apply(this, arguments));
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Use old syntax for -moz- and -webkit-
|
|
24
|
+
*/
|
|
25
|
+
BlockLogical.prototype.prefixed = function prefixed(prop, prefix) {
|
|
26
|
+
if (prop.indexOf('-start') !== -1) {
|
|
27
|
+
return prefix + prop.replace('-block-start', '-before');
|
|
28
|
+
} else {
|
|
29
|
+
return prefix + prop.replace('-block-end', '-after');
|
|
20
30
|
}
|
|
31
|
+
};
|
|
21
32
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
BlockLogical.prototype.prefixed = function prefixed(prop, prefix) {
|
|
26
|
-
return prefix + (prop.indexOf('-start') !== -1 ? prop.replace('-block-start', '-before') : prop.replace('-block-end', '-after'));
|
|
27
|
-
};
|
|
33
|
+
/**
|
|
34
|
+
* Return property name by spec
|
|
35
|
+
*/
|
|
28
36
|
|
|
29
|
-
/**
|
|
30
|
-
* Return property name by spec
|
|
31
|
-
*/
|
|
32
37
|
|
|
38
|
+
BlockLogical.prototype.normalize = function normalize(prop) {
|
|
39
|
+
if (prop.indexOf('-before') !== -1) {
|
|
40
|
+
return prop.replace('-before', '-block-start');
|
|
41
|
+
} else {
|
|
42
|
+
return prop.replace('-after', '-block-end');
|
|
43
|
+
}
|
|
44
|
+
};
|
|
33
45
|
|
|
34
|
-
|
|
35
|
-
if (prop.indexOf('-before') !== -1) {
|
|
36
|
-
return prop.replace('-before', '-block-start');
|
|
37
|
-
} else {
|
|
38
|
-
return prop.replace('-after', '-block-end');
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
return BlockLogical;
|
|
46
|
+
return BlockLogical;
|
|
43
47
|
}(Declaration);
|
|
44
48
|
|
|
45
49
|
Object.defineProperty(BlockLogical, 'names', {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
50
|
+
enumerable: true,
|
|
51
|
+
writable: true,
|
|
52
|
+
value: ['border-block-start', 'border-block-end', 'margin-block-start', 'margin-block-end', 'padding-block-start', 'padding-block-end', 'border-before', 'border-after', 'margin-before', 'margin-after', 'padding-before', 'padding-after']
|
|
49
53
|
});
|
|
50
54
|
|
|
51
55
|
|
|
@@ -11,29 +11,29 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
|
|
|
11
11
|
var Declaration = require('../declaration');
|
|
12
12
|
|
|
13
13
|
var BorderImage = function (_Declaration) {
|
|
14
|
-
|
|
14
|
+
_inherits(BorderImage, _Declaration);
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
function BorderImage() {
|
|
17
|
+
_classCallCheck(this, BorderImage);
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
return _possibleConstructorReturn(this, _Declaration.apply(this, arguments));
|
|
20
|
+
}
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Remove fill parameter for prefixed declarations
|
|
24
|
+
*/
|
|
25
|
+
BorderImage.prototype.set = function set(decl, prefix) {
|
|
26
|
+
decl.value = decl.value.replace(/\s+fill(\s)/, '$1');
|
|
27
|
+
return _Declaration.prototype.set.call(this, decl, prefix);
|
|
28
|
+
};
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
return BorderImage;
|
|
31
31
|
}(Declaration);
|
|
32
32
|
|
|
33
33
|
Object.defineProperty(BorderImage, 'names', {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
enumerable: true,
|
|
35
|
+
writable: true,
|
|
36
|
+
value: ['border-image']
|
|
37
37
|
});
|
|
38
38
|
|
|
39
39
|
|
|
@@ -11,69 +11,69 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
|
|
|
11
11
|
var Declaration = require('../declaration');
|
|
12
12
|
|
|
13
13
|
var BorderRadius = function (_Declaration) {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
_inherits(BorderRadius, _Declaration);
|
|
15
|
+
|
|
16
|
+
function BorderRadius() {
|
|
17
|
+
_classCallCheck(this, BorderRadius);
|
|
18
|
+
|
|
19
|
+
return _possibleConstructorReturn(this, _Declaration.apply(this, arguments));
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Change syntax, when add Mozilla prefix
|
|
24
|
+
*/
|
|
25
|
+
BorderRadius.prototype.prefixed = function prefixed(prop, prefix) {
|
|
26
|
+
if (prefix === '-moz-') {
|
|
27
|
+
return prefix + (BorderRadius.toMozilla[prop] || prop);
|
|
28
|
+
} else {
|
|
29
|
+
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
|
20
30
|
}
|
|
31
|
+
};
|
|
21
32
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
BorderRadius.prototype.prefixed = function prefixed(prop, prefix) {
|
|
26
|
-
if (prefix === '-moz-') {
|
|
27
|
-
return prefix + (BorderRadius.toMozilla[prop] || prop);
|
|
28
|
-
} else {
|
|
29
|
-
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
|
30
|
-
}
|
|
31
|
-
};
|
|
33
|
+
/**
|
|
34
|
+
* Return unprefixed version of property
|
|
35
|
+
*/
|
|
32
36
|
|
|
33
|
-
/**
|
|
34
|
-
* Return unprefixed version of property
|
|
35
|
-
*/
|
|
36
37
|
|
|
38
|
+
BorderRadius.prototype.normalize = function normalize(prop) {
|
|
39
|
+
return BorderRadius.toNormal[prop] || prop;
|
|
40
|
+
};
|
|
37
41
|
|
|
38
|
-
|
|
39
|
-
return BorderRadius.toNormal[prop] || prop;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
return BorderRadius;
|
|
42
|
+
return BorderRadius;
|
|
43
43
|
}(Declaration);
|
|
44
44
|
|
|
45
45
|
Object.defineProperty(BorderRadius, 'names', {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
enumerable: true,
|
|
47
|
+
writable: true,
|
|
48
|
+
value: ['border-radius']
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(BorderRadius, 'toMozilla', {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
enumerable: true,
|
|
52
|
+
writable: true,
|
|
53
|
+
value: {}
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(BorderRadius, 'toNormal', {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
enumerable: true,
|
|
57
|
+
writable: true,
|
|
58
|
+
value: {}
|
|
59
59
|
});
|
|
60
60
|
var _arr = ['top', 'bottom'];
|
|
61
61
|
|
|
62
62
|
|
|
63
63
|
for (var _i = 0; _i < _arr.length; _i++) {
|
|
64
|
-
|
|
64
|
+
var ver = _arr[_i];var _arr2 = ['left', 'right'];
|
|
65
65
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
for (var _i2 = 0; _i2 < _arr2.length; _i2++) {
|
|
67
|
+
var hor = _arr2[_i2];
|
|
68
|
+
var normal = 'border-' + ver + '-' + hor + '-radius';
|
|
69
|
+
var mozilla = 'border-radius-' + ver + hor;
|
|
70
70
|
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
BorderRadius.names.push(normal);
|
|
72
|
+
BorderRadius.names.push(mozilla);
|
|
73
73
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
BorderRadius.toMozilla[normal] = mozilla;
|
|
75
|
+
BorderRadius.toNormal[mozilla] = normal;
|
|
76
|
+
}
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
module.exports = BorderRadius;
|