cssstyle 2.2.0 → 3.0.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/README.md +1 -1
- package/lib/CSSStyleDeclaration.js +18 -18
- package/lib/CSSStyleDeclaration.test.js +12 -6
- package/lib/allProperties.js +76 -9
- package/lib/allWebkitProperties.js +1 -1
- package/lib/implementedProperties.js +1 -1
- package/lib/parsers.js +32 -20
- package/lib/parsers.test.js +7 -0
- package/lib/properties/azimuth.js +3 -6
- package/lib/properties/backgroundAttachment.js +2 -2
- package/lib/properties/backgroundColor.js +2 -2
- package/lib/properties/backgroundImage.js +2 -2
- package/lib/properties/backgroundPosition.js +3 -3
- package/lib/properties/backgroundRepeat.js +2 -2
- package/lib/properties/border.js +1 -1
- package/lib/properties/borderBottomColor.js +2 -2
- package/lib/properties/borderBottomStyle.js +2 -2
- package/lib/properties/borderBottomWidth.js +2 -2
- package/lib/properties/borderCollapse.js +2 -2
- package/lib/properties/borderColor.js +2 -2
- package/lib/properties/borderLeftColor.js +2 -2
- package/lib/properties/borderLeftStyle.js +2 -2
- package/lib/properties/borderLeftWidth.js +2 -2
- package/lib/properties/borderRightColor.js +2 -2
- package/lib/properties/borderRightStyle.js +2 -2
- package/lib/properties/borderRightWidth.js +2 -2
- package/lib/properties/borderSpacing.js +3 -3
- package/lib/properties/borderStyle.js +2 -2
- package/lib/properties/borderTopColor.js +2 -2
- package/lib/properties/borderTopStyle.js +2 -2
- package/lib/properties/borderTopWidth.js +2 -2
- package/lib/properties/borderWidth.js +2 -2
- package/lib/properties/bottom.js +2 -2
- package/lib/properties/clear.js +2 -2
- package/lib/properties/clip.js +4 -4
- package/lib/properties/color.js +2 -2
- package/lib/properties/cssFloat.js +2 -2
- package/lib/properties/flex.js +2 -4
- package/lib/properties/flexBasis.js +2 -2
- package/lib/properties/flexGrow.js +2 -2
- package/lib/properties/flexShrink.js +2 -2
- package/lib/properties/float.js +2 -2
- package/lib/properties/floodColor.js +2 -2
- package/lib/properties/font.js +1 -1
- package/lib/properties/fontFamily.js +2 -2
- package/lib/properties/fontSize.js +4 -4
- package/lib/properties/fontStyle.js +3 -3
- package/lib/properties/fontVariant.js +2 -2
- package/lib/properties/fontWeight.js +2 -2
- package/lib/properties/height.js +2 -2
- package/lib/properties/left.js +2 -2
- package/lib/properties/lightingColor.js +2 -2
- package/lib/properties/lineHeight.js +2 -2
- package/lib/properties/margin.js +6 -6
- package/lib/properties/marginBottom.js +1 -1
- package/lib/properties/marginLeft.js +1 -1
- package/lib/properties/marginRight.js +1 -1
- package/lib/properties/marginTop.js +1 -1
- package/lib/properties/opacity.js +2 -2
- package/lib/properties/outlineColor.js +2 -2
- package/lib/properties/padding.js +6 -6
- package/lib/properties/paddingBottom.js +1 -1
- package/lib/properties/paddingLeft.js +1 -1
- package/lib/properties/paddingRight.js +1 -1
- package/lib/properties/paddingTop.js +1 -1
- package/lib/properties/right.js +2 -2
- package/lib/properties/stopColor.js +2 -2
- package/lib/properties/textLineThroughColor.js +2 -2
- package/lib/properties/textOverlineColor.js +2 -2
- package/lib/properties/textUnderlineColor.js +2 -2
- package/lib/properties/top.js +2 -2
- package/lib/properties/webkitBorderAfterColor.js +2 -2
- package/lib/properties/webkitBorderBeforeColor.js +2 -2
- package/lib/properties/webkitBorderEndColor.js +2 -2
- package/lib/properties/webkitBorderStartColor.js +2 -2
- package/lib/properties/webkitColumnRuleColor.js +2 -2
- package/lib/properties/webkitMatchNearestMailBlockquoteColor.js +2 -2
- package/lib/properties/webkitTapHighlightColor.js +2 -2
- package/lib/properties/webkitTextEmphasisColor.js +2 -2
- package/lib/properties/webkitTextFillColor.js +2 -2
- package/lib/properties/webkitTextStrokeColor.js +2 -2
- package/lib/properties/width.js +2 -2
- package/lib/properties.js +1 -1
- package/lib/utils/getBasicPropertyDescriptor.js +2 -2
- package/package.json +15 -15
|
@@ -7,10 +7,10 @@ module.exports.isValid = function isValid(v) {
|
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
module.exports.definition = {
|
|
10
|
-
set: function(v) {
|
|
10
|
+
set: function (v) {
|
|
11
11
|
this._setProperty('font-variant', v);
|
|
12
12
|
},
|
|
13
|
-
get: function() {
|
|
13
|
+
get: function () {
|
|
14
14
|
return this.getPropertyValue('font-variant');
|
|
15
15
|
},
|
|
16
16
|
enumerable: true,
|
|
@@ -22,10 +22,10 @@ module.exports.isValid = function isValid(v) {
|
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
module.exports.definition = {
|
|
25
|
-
set: function(v) {
|
|
25
|
+
set: function (v) {
|
|
26
26
|
this._setProperty('font-weight', v);
|
|
27
27
|
},
|
|
28
|
-
get: function() {
|
|
28
|
+
get: function () {
|
|
29
29
|
return this.getPropertyValue('font-weight');
|
|
30
30
|
},
|
|
31
31
|
enumerable: true,
|
package/lib/properties/height.js
CHANGED
|
@@ -13,10 +13,10 @@ function parse(v) {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
module.exports.definition = {
|
|
16
|
-
set: function(v) {
|
|
16
|
+
set: function (v) {
|
|
17
17
|
this._setProperty('height', parse(v));
|
|
18
18
|
},
|
|
19
|
-
get: function() {
|
|
19
|
+
get: function () {
|
|
20
20
|
return this.getPropertyValue('height');
|
|
21
21
|
},
|
|
22
22
|
enumerable: true,
|
package/lib/properties/left.js
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
var parseMeasurement = require('../parsers').parseMeasurement;
|
|
4
4
|
|
|
5
5
|
module.exports.definition = {
|
|
6
|
-
set: function(v) {
|
|
6
|
+
set: function (v) {
|
|
7
7
|
this._setProperty('left', parseMeasurement(v));
|
|
8
8
|
},
|
|
9
|
-
get: function() {
|
|
9
|
+
get: function () {
|
|
10
10
|
return this.getPropertyValue('left');
|
|
11
11
|
},
|
|
12
12
|
enumerable: true,
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
var parseColor = require('../parsers').parseColor;
|
|
4
4
|
|
|
5
5
|
module.exports.definition = {
|
|
6
|
-
set: function(v) {
|
|
6
|
+
set: function (v) {
|
|
7
7
|
this._setProperty('lighting-color', parseColor(v));
|
|
8
8
|
},
|
|
9
|
-
get: function() {
|
|
9
|
+
get: function () {
|
|
10
10
|
return this.getPropertyValue('lighting-color');
|
|
11
11
|
},
|
|
12
12
|
enumerable: true,
|
|
@@ -15,10 +15,10 @@ module.exports.isValid = function isValid(v) {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
module.exports.definition = {
|
|
18
|
-
set: function(v) {
|
|
18
|
+
set: function (v) {
|
|
19
19
|
this._setProperty('line-height', v);
|
|
20
20
|
},
|
|
21
|
-
get: function() {
|
|
21
|
+
get: function () {
|
|
22
22
|
return this.getPropertyValue('line-height');
|
|
23
23
|
},
|
|
24
24
|
enumerable: true,
|
package/lib/properties/margin.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var parsers = require('../parsers.js');
|
|
4
4
|
var TYPES = parsers.TYPES;
|
|
5
5
|
|
|
6
|
-
var isValid = function(v) {
|
|
6
|
+
var isValid = function (v) {
|
|
7
7
|
if (v.toLowerCase() === 'auto') {
|
|
8
8
|
return true;
|
|
9
9
|
}
|
|
@@ -15,7 +15,7 @@ var isValid = function(v) {
|
|
|
15
15
|
);
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
var parser = function(v) {
|
|
18
|
+
var parser = function (v) {
|
|
19
19
|
var V = v.toLowerCase();
|
|
20
20
|
if (V === 'auto') {
|
|
21
21
|
return V;
|
|
@@ -27,16 +27,16 @@ var mySetter = parsers.implicitSetter('margin', '', isValid, parser);
|
|
|
27
27
|
var myGlobal = parsers.implicitSetter(
|
|
28
28
|
'margin',
|
|
29
29
|
'',
|
|
30
|
-
function() {
|
|
30
|
+
function () {
|
|
31
31
|
return true;
|
|
32
32
|
},
|
|
33
|
-
function(v) {
|
|
33
|
+
function (v) {
|
|
34
34
|
return v;
|
|
35
35
|
}
|
|
36
36
|
);
|
|
37
37
|
|
|
38
38
|
module.exports.definition = {
|
|
39
|
-
set: function(v) {
|
|
39
|
+
set: function (v) {
|
|
40
40
|
if (typeof v === 'number') {
|
|
41
41
|
v = String(v);
|
|
42
42
|
}
|
|
@@ -57,7 +57,7 @@ module.exports.definition = {
|
|
|
57
57
|
break;
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
|
-
get: function() {
|
|
60
|
+
get: function () {
|
|
61
61
|
return this.getPropertyValue('margin');
|
|
62
62
|
},
|
|
63
63
|
enumerable: true,
|
|
@@ -5,7 +5,7 @@ var parsers = require('../parsers.js');
|
|
|
5
5
|
|
|
6
6
|
module.exports.definition = {
|
|
7
7
|
set: parsers.subImplicitSetter('margin', 'bottom', margin.isValid, margin.parser),
|
|
8
|
-
get: function() {
|
|
8
|
+
get: function () {
|
|
9
9
|
return this.getPropertyValue('margin-bottom');
|
|
10
10
|
},
|
|
11
11
|
enumerable: true,
|
|
@@ -5,7 +5,7 @@ var parsers = require('../parsers.js');
|
|
|
5
5
|
|
|
6
6
|
module.exports.definition = {
|
|
7
7
|
set: parsers.subImplicitSetter('margin', 'left', margin.isValid, margin.parser),
|
|
8
|
-
get: function() {
|
|
8
|
+
get: function () {
|
|
9
9
|
return this.getPropertyValue('margin-left');
|
|
10
10
|
},
|
|
11
11
|
enumerable: true,
|
|
@@ -5,7 +5,7 @@ var parsers = require('../parsers.js');
|
|
|
5
5
|
|
|
6
6
|
module.exports.definition = {
|
|
7
7
|
set: parsers.subImplicitSetter('margin', 'right', margin.isValid, margin.parser),
|
|
8
|
-
get: function() {
|
|
8
|
+
get: function () {
|
|
9
9
|
return this.getPropertyValue('margin-right');
|
|
10
10
|
},
|
|
11
11
|
enumerable: true,
|
|
@@ -5,7 +5,7 @@ var parsers = require('../parsers.js');
|
|
|
5
5
|
|
|
6
6
|
module.exports.definition = {
|
|
7
7
|
set: parsers.subImplicitSetter('margin', 'top', margin.isValid, margin.parser),
|
|
8
|
-
get: function() {
|
|
8
|
+
get: function () {
|
|
9
9
|
return this.getPropertyValue('margin-top');
|
|
10
10
|
},
|
|
11
11
|
enumerable: true,
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
var parseNumber = require('../parsers').parseNumber;
|
|
4
4
|
|
|
5
5
|
module.exports.definition = {
|
|
6
|
-
set: function(v) {
|
|
6
|
+
set: function (v) {
|
|
7
7
|
this._setProperty('opacity', parseNumber(v));
|
|
8
8
|
},
|
|
9
|
-
get: function() {
|
|
9
|
+
get: function () {
|
|
10
10
|
return this.getPropertyValue('opacity');
|
|
11
11
|
},
|
|
12
12
|
enumerable: true,
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
var parseColor = require('../parsers').parseColor;
|
|
4
4
|
|
|
5
5
|
module.exports.definition = {
|
|
6
|
-
set: function(v) {
|
|
6
|
+
set: function (v) {
|
|
7
7
|
this._setProperty('outline-color', parseColor(v));
|
|
8
8
|
},
|
|
9
|
-
get: function() {
|
|
9
|
+
get: function () {
|
|
10
10
|
return this.getPropertyValue('outline-color');
|
|
11
11
|
},
|
|
12
12
|
enumerable: true,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var parsers = require('../parsers.js');
|
|
4
4
|
var TYPES = parsers.TYPES;
|
|
5
5
|
|
|
6
|
-
var isValid = function(v) {
|
|
6
|
+
var isValid = function (v) {
|
|
7
7
|
var type = parsers.valueType(v);
|
|
8
8
|
return (
|
|
9
9
|
type === TYPES.LENGTH ||
|
|
@@ -12,7 +12,7 @@ var isValid = function(v) {
|
|
|
12
12
|
);
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
-
var parser = function(v) {
|
|
15
|
+
var parser = function (v) {
|
|
16
16
|
return parsers.parseMeasurement(v);
|
|
17
17
|
};
|
|
18
18
|
|
|
@@ -20,16 +20,16 @@ var mySetter = parsers.implicitSetter('padding', '', isValid, parser);
|
|
|
20
20
|
var myGlobal = parsers.implicitSetter(
|
|
21
21
|
'padding',
|
|
22
22
|
'',
|
|
23
|
-
function() {
|
|
23
|
+
function () {
|
|
24
24
|
return true;
|
|
25
25
|
},
|
|
26
|
-
function(v) {
|
|
26
|
+
function (v) {
|
|
27
27
|
return v;
|
|
28
28
|
}
|
|
29
29
|
);
|
|
30
30
|
|
|
31
31
|
module.exports.definition = {
|
|
32
|
-
set: function(v) {
|
|
32
|
+
set: function (v) {
|
|
33
33
|
if (typeof v === 'number') {
|
|
34
34
|
v = String(v);
|
|
35
35
|
}
|
|
@@ -50,7 +50,7 @@ module.exports.definition = {
|
|
|
50
50
|
break;
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
get: function() {
|
|
53
|
+
get: function () {
|
|
54
54
|
return this.getPropertyValue('padding');
|
|
55
55
|
},
|
|
56
56
|
enumerable: true,
|
|
@@ -5,7 +5,7 @@ var parsers = require('../parsers.js');
|
|
|
5
5
|
|
|
6
6
|
module.exports.definition = {
|
|
7
7
|
set: parsers.subImplicitSetter('padding', 'bottom', padding.isValid, padding.parser),
|
|
8
|
-
get: function() {
|
|
8
|
+
get: function () {
|
|
9
9
|
return this.getPropertyValue('padding-bottom');
|
|
10
10
|
},
|
|
11
11
|
enumerable: true,
|
|
@@ -5,7 +5,7 @@ var parsers = require('../parsers.js');
|
|
|
5
5
|
|
|
6
6
|
module.exports.definition = {
|
|
7
7
|
set: parsers.subImplicitSetter('padding', 'left', padding.isValid, padding.parser),
|
|
8
|
-
get: function() {
|
|
8
|
+
get: function () {
|
|
9
9
|
return this.getPropertyValue('padding-left');
|
|
10
10
|
},
|
|
11
11
|
enumerable: true,
|
|
@@ -5,7 +5,7 @@ var parsers = require('../parsers.js');
|
|
|
5
5
|
|
|
6
6
|
module.exports.definition = {
|
|
7
7
|
set: parsers.subImplicitSetter('padding', 'right', padding.isValid, padding.parser),
|
|
8
|
-
get: function() {
|
|
8
|
+
get: function () {
|
|
9
9
|
return this.getPropertyValue('padding-right');
|
|
10
10
|
},
|
|
11
11
|
enumerable: true,
|
|
@@ -5,7 +5,7 @@ var parsers = require('../parsers.js');
|
|
|
5
5
|
|
|
6
6
|
module.exports.definition = {
|
|
7
7
|
set: parsers.subImplicitSetter('padding', 'top', padding.isValid, padding.parser),
|
|
8
|
-
get: function() {
|
|
8
|
+
get: function () {
|
|
9
9
|
return this.getPropertyValue('padding-top');
|
|
10
10
|
},
|
|
11
11
|
enumerable: true,
|
package/lib/properties/right.js
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
var parseMeasurement = require('../parsers').parseMeasurement;
|
|
4
4
|
|
|
5
5
|
module.exports.definition = {
|
|
6
|
-
set: function(v) {
|
|
6
|
+
set: function (v) {
|
|
7
7
|
this._setProperty('right', parseMeasurement(v));
|
|
8
8
|
},
|
|
9
|
-
get: function() {
|
|
9
|
+
get: function () {
|
|
10
10
|
return this.getPropertyValue('right');
|
|
11
11
|
},
|
|
12
12
|
enumerable: true,
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
var parseColor = require('../parsers').parseColor;
|
|
4
4
|
|
|
5
5
|
module.exports.definition = {
|
|
6
|
-
set: function(v) {
|
|
6
|
+
set: function (v) {
|
|
7
7
|
this._setProperty('stop-color', parseColor(v));
|
|
8
8
|
},
|
|
9
|
-
get: function() {
|
|
9
|
+
get: function () {
|
|
10
10
|
return this.getPropertyValue('stop-color');
|
|
11
11
|
},
|
|
12
12
|
enumerable: true,
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
var parseColor = require('../parsers').parseColor;
|
|
4
4
|
|
|
5
5
|
module.exports.definition = {
|
|
6
|
-
set: function(v) {
|
|
6
|
+
set: function (v) {
|
|
7
7
|
this._setProperty('text-line-through-color', parseColor(v));
|
|
8
8
|
},
|
|
9
|
-
get: function() {
|
|
9
|
+
get: function () {
|
|
10
10
|
return this.getPropertyValue('text-line-through-color');
|
|
11
11
|
},
|
|
12
12
|
enumerable: true,
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
var parseColor = require('../parsers').parseColor;
|
|
4
4
|
|
|
5
5
|
module.exports.definition = {
|
|
6
|
-
set: function(v) {
|
|
6
|
+
set: function (v) {
|
|
7
7
|
this._setProperty('text-overline-color', parseColor(v));
|
|
8
8
|
},
|
|
9
|
-
get: function() {
|
|
9
|
+
get: function () {
|
|
10
10
|
return this.getPropertyValue('text-overline-color');
|
|
11
11
|
},
|
|
12
12
|
enumerable: true,
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
var parseColor = require('../parsers').parseColor;
|
|
4
4
|
|
|
5
5
|
module.exports.definition = {
|
|
6
|
-
set: function(v) {
|
|
6
|
+
set: function (v) {
|
|
7
7
|
this._setProperty('text-underline-color', parseColor(v));
|
|
8
8
|
},
|
|
9
|
-
get: function() {
|
|
9
|
+
get: function () {
|
|
10
10
|
return this.getPropertyValue('text-underline-color');
|
|
11
11
|
},
|
|
12
12
|
enumerable: true,
|
package/lib/properties/top.js
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
var parseMeasurement = require('../parsers').parseMeasurement;
|
|
4
4
|
|
|
5
5
|
module.exports.definition = {
|
|
6
|
-
set: function(v) {
|
|
6
|
+
set: function (v) {
|
|
7
7
|
this._setProperty('top', parseMeasurement(v));
|
|
8
8
|
},
|
|
9
|
-
get: function() {
|
|
9
|
+
get: function () {
|
|
10
10
|
return this.getPropertyValue('top');
|
|
11
11
|
},
|
|
12
12
|
enumerable: true,
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
var parseColor = require('../parsers').parseColor;
|
|
4
4
|
|
|
5
5
|
module.exports.definition = {
|
|
6
|
-
set: function(v) {
|
|
6
|
+
set: function (v) {
|
|
7
7
|
this._setProperty('-webkit-border-after-color', parseColor(v));
|
|
8
8
|
},
|
|
9
|
-
get: function() {
|
|
9
|
+
get: function () {
|
|
10
10
|
return this.getPropertyValue('-webkit-border-after-color');
|
|
11
11
|
},
|
|
12
12
|
enumerable: true,
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
var parseColor = require('../parsers').parseColor;
|
|
4
4
|
|
|
5
5
|
module.exports.definition = {
|
|
6
|
-
set: function(v) {
|
|
6
|
+
set: function (v) {
|
|
7
7
|
this._setProperty('-webkit-border-before-color', parseColor(v));
|
|
8
8
|
},
|
|
9
|
-
get: function() {
|
|
9
|
+
get: function () {
|
|
10
10
|
return this.getPropertyValue('-webkit-border-before-color');
|
|
11
11
|
},
|
|
12
12
|
enumerable: true,
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
var parseColor = require('../parsers').parseColor;
|
|
4
4
|
|
|
5
5
|
module.exports.definition = {
|
|
6
|
-
set: function(v) {
|
|
6
|
+
set: function (v) {
|
|
7
7
|
this._setProperty('-webkit-border-end-color', parseColor(v));
|
|
8
8
|
},
|
|
9
|
-
get: function() {
|
|
9
|
+
get: function () {
|
|
10
10
|
return this.getPropertyValue('-webkit-border-end-color');
|
|
11
11
|
},
|
|
12
12
|
enumerable: true,
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
var parseColor = require('../parsers').parseColor;
|
|
4
4
|
|
|
5
5
|
module.exports.definition = {
|
|
6
|
-
set: function(v) {
|
|
6
|
+
set: function (v) {
|
|
7
7
|
this._setProperty('-webkit-border-start-color', parseColor(v));
|
|
8
8
|
},
|
|
9
|
-
get: function() {
|
|
9
|
+
get: function () {
|
|
10
10
|
return this.getPropertyValue('-webkit-border-start-color');
|
|
11
11
|
},
|
|
12
12
|
enumerable: true,
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
var parseColor = require('../parsers').parseColor;
|
|
4
4
|
|
|
5
5
|
module.exports.definition = {
|
|
6
|
-
set: function(v) {
|
|
6
|
+
set: function (v) {
|
|
7
7
|
this._setProperty('-webkit-column-rule-color', parseColor(v));
|
|
8
8
|
},
|
|
9
|
-
get: function() {
|
|
9
|
+
get: function () {
|
|
10
10
|
return this.getPropertyValue('-webkit-column-rule-color');
|
|
11
11
|
},
|
|
12
12
|
enumerable: true,
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
var parseColor = require('../parsers').parseColor;
|
|
4
4
|
|
|
5
5
|
module.exports.definition = {
|
|
6
|
-
set: function(v) {
|
|
6
|
+
set: function (v) {
|
|
7
7
|
this._setProperty('-webkit-match-nearest-mail-blockquote-color', parseColor(v));
|
|
8
8
|
},
|
|
9
|
-
get: function() {
|
|
9
|
+
get: function () {
|
|
10
10
|
return this.getPropertyValue('-webkit-match-nearest-mail-blockquote-color');
|
|
11
11
|
},
|
|
12
12
|
enumerable: true,
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
var parseColor = require('../parsers').parseColor;
|
|
4
4
|
|
|
5
5
|
module.exports.definition = {
|
|
6
|
-
set: function(v) {
|
|
6
|
+
set: function (v) {
|
|
7
7
|
this._setProperty('-webkit-tap-highlight-color', parseColor(v));
|
|
8
8
|
},
|
|
9
|
-
get: function() {
|
|
9
|
+
get: function () {
|
|
10
10
|
return this.getPropertyValue('-webkit-tap-highlight-color');
|
|
11
11
|
},
|
|
12
12
|
enumerable: true,
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
var parseColor = require('../parsers').parseColor;
|
|
4
4
|
|
|
5
5
|
module.exports.definition = {
|
|
6
|
-
set: function(v) {
|
|
6
|
+
set: function (v) {
|
|
7
7
|
this._setProperty('-webkit-text-emphasis-color', parseColor(v));
|
|
8
8
|
},
|
|
9
|
-
get: function() {
|
|
9
|
+
get: function () {
|
|
10
10
|
return this.getPropertyValue('-webkit-text-emphasis-color');
|
|
11
11
|
},
|
|
12
12
|
enumerable: true,
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
var parseColor = require('../parsers').parseColor;
|
|
4
4
|
|
|
5
5
|
module.exports.definition = {
|
|
6
|
-
set: function(v) {
|
|
6
|
+
set: function (v) {
|
|
7
7
|
this._setProperty('-webkit-text-fill-color', parseColor(v));
|
|
8
8
|
},
|
|
9
|
-
get: function() {
|
|
9
|
+
get: function () {
|
|
10
10
|
return this.getPropertyValue('-webkit-text-fill-color');
|
|
11
11
|
},
|
|
12
12
|
enumerable: true,
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
var parseColor = require('../parsers').parseColor;
|
|
4
4
|
|
|
5
5
|
module.exports.definition = {
|
|
6
|
-
set: function(v) {
|
|
6
|
+
set: function (v) {
|
|
7
7
|
this._setProperty('-webkit-text-stroke-color', parseColor(v));
|
|
8
8
|
},
|
|
9
|
-
get: function() {
|
|
9
|
+
get: function () {
|
|
10
10
|
return this.getPropertyValue('-webkit-text-stroke-color');
|
|
11
11
|
},
|
|
12
12
|
enumerable: true,
|
package/lib/properties/width.js
CHANGED
|
@@ -13,10 +13,10 @@ function parse(v) {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
module.exports.definition = {
|
|
16
|
-
set: function(v) {
|
|
16
|
+
set: function (v) {
|
|
17
17
|
this._setProperty('width', parse(v));
|
|
18
18
|
},
|
|
19
|
-
get: function() {
|
|
19
|
+
get: function () {
|
|
20
20
|
return this.getPropertyValue('width');
|
|
21
21
|
},
|
|
22
22
|
enumerable: true,
|
package/lib/properties.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
module.exports = function getBasicPropertyDescriptor(name) {
|
|
4
4
|
return {
|
|
5
|
-
set: function(v) {
|
|
5
|
+
set: function (v) {
|
|
6
6
|
this._setProperty(name, v);
|
|
7
7
|
},
|
|
8
|
-
get: function() {
|
|
8
|
+
get: function () {
|
|
9
9
|
return this.getPropertyValue(name);
|
|
10
10
|
},
|
|
11
11
|
enumerable: true,
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"CSSStyleDeclaration",
|
|
7
7
|
"StyleSheet"
|
|
8
8
|
],
|
|
9
|
-
"version": "
|
|
9
|
+
"version": "3.0.0",
|
|
10
10
|
"homepage": "https://github.com/jsdom/cssstyle",
|
|
11
11
|
"maintainers": [
|
|
12
12
|
{
|
|
@@ -37,21 +37,21 @@
|
|
|
37
37
|
],
|
|
38
38
|
"main": "./lib/CSSStyleDeclaration.js",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"cssom": "
|
|
40
|
+
"rrweb-cssom": "^0.6.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"babel-generator": "
|
|
44
|
-
"babel-traverse": "
|
|
45
|
-
"babel-types": "
|
|
46
|
-
"babylon": "
|
|
47
|
-
"eslint": "
|
|
48
|
-
"eslint-config-prettier": "
|
|
49
|
-
"eslint-plugin-prettier": "
|
|
50
|
-
"jest": "^
|
|
43
|
+
"babel-generator": "^6.26.1",
|
|
44
|
+
"babel-traverse": "^6.26.0",
|
|
45
|
+
"babel-types": "^6.26.0",
|
|
46
|
+
"babylon": "^6.18.0",
|
|
47
|
+
"eslint": "^8.32.0",
|
|
48
|
+
"eslint-config-prettier": "^8.6.0",
|
|
49
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
50
|
+
"jest": "^29.3.1",
|
|
51
|
+
"minipass-fetch": "^3.0.1",
|
|
51
52
|
"npm-run-all": "^4.1.5",
|
|
52
|
-
"prettier": "
|
|
53
|
-
"
|
|
54
|
-
"resolve": "~1.11.1"
|
|
53
|
+
"prettier": "^2.8.3",
|
|
54
|
+
"resolve": "^1.22.1"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"download": "node ./scripts/download_latest_properties.js && eslint lib/allProperties.js --fix",
|
|
@@ -62,11 +62,11 @@
|
|
|
62
62
|
"lint:fix": "eslint . --fix --max-warnings 0",
|
|
63
63
|
"prepublishOnly": "npm run lint && npm run test",
|
|
64
64
|
"test": "npm run generate && jest",
|
|
65
|
-
"test-ci": "npm run lint && npm run test
|
|
65
|
+
"test-ci": "npm run lint && npm run test",
|
|
66
66
|
"update-authors": "git log --format=\"%aN <%aE>\" | sort -f | uniq > AUTHORS"
|
|
67
67
|
},
|
|
68
68
|
"license": "MIT",
|
|
69
69
|
"engines": {
|
|
70
|
-
"node": ">=
|
|
70
|
+
"node": ">=14"
|
|
71
71
|
}
|
|
72
72
|
}
|