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 _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
---|
6 |
|
---|
7 | 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 |
|
---|
9 | var Declaration = require('../declaration');
|
---|
10 |
|
---|
11 | var MaskBorder = /*#__PURE__*/function (_Declaration) {
|
---|
12 | _inheritsLoose(MaskBorder, _Declaration);
|
---|
13 |
|
---|
14 | function MaskBorder() {
|
---|
15 | return _Declaration.apply(this, arguments) || this;
|
---|
16 | }
|
---|
17 |
|
---|
18 | var _proto = MaskBorder.prototype;
|
---|
19 |
|
---|
20 | /**
|
---|
21 | * Return property name by final spec
|
---|
22 | */
|
---|
23 | _proto.normalize = function normalize() {
|
---|
24 | return this.name.replace('box-image', 'border');
|
---|
25 | }
|
---|
26 | /**
|
---|
27 | * Return flex property for 2012 spec
|
---|
28 | */
|
---|
29 | ;
|
---|
30 |
|
---|
31 | _proto.prefixed = function prefixed(prop, prefix) {
|
---|
32 | var result = _Declaration.prototype.prefixed.call(this, prop, prefix);
|
---|
33 |
|
---|
34 | if (prefix === '-webkit-') {
|
---|
35 | result = result.replace('border', 'box-image');
|
---|
36 | }
|
---|
37 |
|
---|
38 | return result;
|
---|
39 | };
|
---|
40 |
|
---|
41 | return MaskBorder;
|
---|
42 | }(Declaration);
|
---|
43 |
|
---|
44 | _defineProperty(MaskBorder, "names", ['mask-border', 'mask-border-source', 'mask-border-slice', 'mask-border-width', 'mask-border-outset', 'mask-border-repeat', 'mask-box-image', 'mask-box-image-source', 'mask-box-image-slice', 'mask-box-image-width', 'mask-box-image-outset', 'mask-box-image-repeat']);
|
---|
45 |
|
---|
46 | module.exports = MaskBorder; |
---|