cssstyle 2.3.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.
Files changed (84) hide show
  1. package/README.md +1 -1
  2. package/lib/CSSStyleDeclaration.js +18 -18
  3. package/lib/CSSStyleDeclaration.test.js +6 -6
  4. package/lib/allProperties.js +66 -9
  5. package/lib/allWebkitProperties.js +1 -1
  6. package/lib/implementedProperties.js +1 -1
  7. package/lib/parsers.js +21 -20
  8. package/lib/properties/azimuth.js +3 -6
  9. package/lib/properties/backgroundAttachment.js +2 -2
  10. package/lib/properties/backgroundColor.js +2 -2
  11. package/lib/properties/backgroundImage.js +2 -2
  12. package/lib/properties/backgroundPosition.js +3 -3
  13. package/lib/properties/backgroundRepeat.js +2 -2
  14. package/lib/properties/border.js +1 -1
  15. package/lib/properties/borderBottomColor.js +2 -2
  16. package/lib/properties/borderBottomStyle.js +2 -2
  17. package/lib/properties/borderBottomWidth.js +2 -2
  18. package/lib/properties/borderCollapse.js +2 -2
  19. package/lib/properties/borderColor.js +2 -2
  20. package/lib/properties/borderLeftColor.js +2 -2
  21. package/lib/properties/borderLeftStyle.js +2 -2
  22. package/lib/properties/borderLeftWidth.js +2 -2
  23. package/lib/properties/borderRightColor.js +2 -2
  24. package/lib/properties/borderRightStyle.js +2 -2
  25. package/lib/properties/borderRightWidth.js +2 -2
  26. package/lib/properties/borderSpacing.js +3 -3
  27. package/lib/properties/borderStyle.js +2 -2
  28. package/lib/properties/borderTopColor.js +2 -2
  29. package/lib/properties/borderTopStyle.js +2 -2
  30. package/lib/properties/borderTopWidth.js +2 -2
  31. package/lib/properties/borderWidth.js +2 -2
  32. package/lib/properties/bottom.js +2 -2
  33. package/lib/properties/clear.js +2 -2
  34. package/lib/properties/clip.js +4 -4
  35. package/lib/properties/color.js +2 -2
  36. package/lib/properties/cssFloat.js +2 -2
  37. package/lib/properties/flex.js +2 -4
  38. package/lib/properties/flexBasis.js +2 -2
  39. package/lib/properties/flexGrow.js +2 -2
  40. package/lib/properties/flexShrink.js +2 -2
  41. package/lib/properties/float.js +2 -2
  42. package/lib/properties/floodColor.js +2 -2
  43. package/lib/properties/font.js +1 -1
  44. package/lib/properties/fontFamily.js +2 -2
  45. package/lib/properties/fontSize.js +4 -4
  46. package/lib/properties/fontStyle.js +3 -3
  47. package/lib/properties/fontVariant.js +2 -2
  48. package/lib/properties/fontWeight.js +2 -2
  49. package/lib/properties/height.js +2 -2
  50. package/lib/properties/left.js +2 -2
  51. package/lib/properties/lightingColor.js +2 -2
  52. package/lib/properties/lineHeight.js +2 -2
  53. package/lib/properties/margin.js +6 -6
  54. package/lib/properties/marginBottom.js +1 -1
  55. package/lib/properties/marginLeft.js +1 -1
  56. package/lib/properties/marginRight.js +1 -1
  57. package/lib/properties/marginTop.js +1 -1
  58. package/lib/properties/opacity.js +2 -2
  59. package/lib/properties/outlineColor.js +2 -2
  60. package/lib/properties/padding.js +6 -6
  61. package/lib/properties/paddingBottom.js +1 -1
  62. package/lib/properties/paddingLeft.js +1 -1
  63. package/lib/properties/paddingRight.js +1 -1
  64. package/lib/properties/paddingTop.js +1 -1
  65. package/lib/properties/right.js +2 -2
  66. package/lib/properties/stopColor.js +2 -2
  67. package/lib/properties/textLineThroughColor.js +2 -2
  68. package/lib/properties/textOverlineColor.js +2 -2
  69. package/lib/properties/textUnderlineColor.js +2 -2
  70. package/lib/properties/top.js +2 -2
  71. package/lib/properties/webkitBorderAfterColor.js +2 -2
  72. package/lib/properties/webkitBorderBeforeColor.js +2 -2
  73. package/lib/properties/webkitBorderEndColor.js +2 -2
  74. package/lib/properties/webkitBorderStartColor.js +2 -2
  75. package/lib/properties/webkitColumnRuleColor.js +2 -2
  76. package/lib/properties/webkitMatchNearestMailBlockquoteColor.js +2 -2
  77. package/lib/properties/webkitTapHighlightColor.js +2 -2
  78. package/lib/properties/webkitTextEmphasisColor.js +2 -2
  79. package/lib/properties/webkitTextFillColor.js +2 -2
  80. package/lib/properties/webkitTextStrokeColor.js +2 -2
  81. package/lib/properties/width.js +2 -2
  82. package/lib/properties.js +1 -1
  83. package/lib/utils/getBasicPropertyDescriptor.js +2 -2
  84. package/package.json +15 -15
@@ -13,7 +13,7 @@ var parse = function parse(v) {
13
13
  return undefined;
14
14
  }
15
15
  var types = [];
16
- parts.forEach(function(part, index) {
16
+ parts.forEach(function (part, index) {
17
17
  types[index] = parsers.valueType(part);
18
18
  });
19
19
  if (parts.length === 1) {
@@ -47,10 +47,10 @@ module.exports.isValid = function isValid(v) {
47
47
  };
48
48
 
49
49
  module.exports.definition = {
50
- set: function(v) {
50
+ set: function (v) {
51
51
  this._setProperty('background-position', parse(v));
52
52
  },
53
- get: function() {
53
+ get: function () {
54
54
  return this.getPropertyValue('background-position');
55
55
  },
56
56
  enumerable: true,
@@ -21,10 +21,10 @@ module.exports.isValid = function isValid(v) {
21
21
  };
22
22
 
23
23
  module.exports.definition = {
24
- set: function(v) {
24
+ set: function (v) {
25
25
  this._setProperty('background-repeat', parse(v));
26
26
  },
27
- get: function() {
27
+ get: function () {
28
28
  return this.getPropertyValue('background-repeat');
29
29
  },
30
30
  enumerable: true,
@@ -13,7 +13,7 @@ var myShorthandSetter = shorthandSetter('border', shorthand_for);
13
13
  var myShorthandGetter = shorthandGetter('border', shorthand_for);
14
14
 
15
15
  module.exports.definition = {
16
- set: function(v) {
16
+ set: function (v) {
17
17
  if (v.toString().toLowerCase() === 'none') {
18
18
  v = '';
19
19
  }
@@ -3,12 +3,12 @@
3
3
  var isValid = (module.exports.isValid = require('./borderColor').isValid);
4
4
 
5
5
  module.exports.definition = {
6
- set: function(v) {
6
+ set: function (v) {
7
7
  if (isValid(v)) {
8
8
  this._setProperty('border-bottom-color', v);
9
9
  }
10
10
  },
11
- get: function() {
11
+ get: function () {
12
12
  return this.getPropertyValue('border-bottom-color');
13
13
  },
14
14
  enumerable: true,
@@ -4,7 +4,7 @@ var isValid = require('./borderStyle').isValid;
4
4
  module.exports.isValid = isValid;
5
5
 
6
6
  module.exports.definition = {
7
- set: function(v) {
7
+ set: function (v) {
8
8
  if (isValid(v)) {
9
9
  if (v.toLowerCase() === 'none') {
10
10
  v = '';
@@ -13,7 +13,7 @@ module.exports.definition = {
13
13
  this._setProperty('border-bottom-style', v);
14
14
  }
15
15
  },
16
- get: function() {
16
+ get: function () {
17
17
  return this.getPropertyValue('border-bottom-style');
18
18
  },
19
19
  enumerable: true,
@@ -3,12 +3,12 @@
3
3
  var isValid = (module.exports.isValid = require('./borderWidth').isValid);
4
4
 
5
5
  module.exports.definition = {
6
- set: function(v) {
6
+ set: function (v) {
7
7
  if (isValid(v)) {
8
8
  this._setProperty('border-bottom-width', v);
9
9
  }
10
10
  },
11
- get: function() {
11
+ get: function () {
12
12
  return this.getPropertyValue('border-bottom-width');
13
13
  },
14
14
  enumerable: true,
@@ -15,10 +15,10 @@ var parse = function parse(v) {
15
15
  };
16
16
 
17
17
  module.exports.definition = {
18
- set: function(v) {
18
+ set: function (v) {
19
19
  this._setProperty('border-collapse', parse(v));
20
20
  },
21
- get: function() {
21
+ get: function () {
22
22
  return this.getPropertyValue('border-collapse');
23
23
  },
24
24
  enumerable: true,
@@ -13,7 +13,7 @@ module.exports.isValid = function parse(v) {
13
13
  };
14
14
  var isValid = module.exports.isValid;
15
15
 
16
- var parser = function(v) {
16
+ var parser = function (v) {
17
17
  if (isValid(v)) {
18
18
  return v.toLowerCase();
19
19
  }
@@ -22,7 +22,7 @@ var parser = function(v) {
22
22
 
23
23
  module.exports.definition = {
24
24
  set: implicitSetter('border', 'color', isValid, parser),
25
- get: function() {
25
+ get: function () {
26
26
  return this.getPropertyValue('border-color');
27
27
  },
28
28
  enumerable: true,
@@ -3,12 +3,12 @@
3
3
  var isValid = (module.exports.isValid = require('./borderColor').isValid);
4
4
 
5
5
  module.exports.definition = {
6
- set: function(v) {
6
+ set: function (v) {
7
7
  if (isValid(v)) {
8
8
  this._setProperty('border-left-color', v);
9
9
  }
10
10
  },
11
- get: function() {
11
+ get: function () {
12
12
  return this.getPropertyValue('border-left-color');
13
13
  },
14
14
  enumerable: true,
@@ -4,7 +4,7 @@ var isValid = require('./borderStyle').isValid;
4
4
  module.exports.isValid = isValid;
5
5
 
6
6
  module.exports.definition = {
7
- set: function(v) {
7
+ set: function (v) {
8
8
  if (isValid(v)) {
9
9
  if (v.toLowerCase() === 'none') {
10
10
  v = '';
@@ -13,7 +13,7 @@ module.exports.definition = {
13
13
  this._setProperty('border-left-style', v);
14
14
  }
15
15
  },
16
- get: function() {
16
+ get: function () {
17
17
  return this.getPropertyValue('border-left-style');
18
18
  },
19
19
  enumerable: true,
@@ -3,12 +3,12 @@
3
3
  var isValid = (module.exports.isValid = require('./borderWidth').isValid);
4
4
 
5
5
  module.exports.definition = {
6
- set: function(v) {
6
+ set: function (v) {
7
7
  if (isValid(v)) {
8
8
  this._setProperty('border-left-width', v);
9
9
  }
10
10
  },
11
- get: function() {
11
+ get: function () {
12
12
  return this.getPropertyValue('border-left-width');
13
13
  },
14
14
  enumerable: true,
@@ -3,12 +3,12 @@
3
3
  var isValid = (module.exports.isValid = require('./borderColor').isValid);
4
4
 
5
5
  module.exports.definition = {
6
- set: function(v) {
6
+ set: function (v) {
7
7
  if (isValid(v)) {
8
8
  this._setProperty('border-right-color', v);
9
9
  }
10
10
  },
11
- get: function() {
11
+ get: function () {
12
12
  return this.getPropertyValue('border-right-color');
13
13
  },
14
14
  enumerable: true,
@@ -4,7 +4,7 @@ var isValid = require('./borderStyle').isValid;
4
4
  module.exports.isValid = isValid;
5
5
 
6
6
  module.exports.definition = {
7
- set: function(v) {
7
+ set: function (v) {
8
8
  if (isValid(v)) {
9
9
  if (v.toLowerCase() === 'none') {
10
10
  v = '';
@@ -13,7 +13,7 @@ module.exports.definition = {
13
13
  this._setProperty('border-right-style', v);
14
14
  }
15
15
  },
16
- get: function() {
16
+ get: function () {
17
17
  return this.getPropertyValue('border-right-style');
18
18
  },
19
19
  enumerable: true,
@@ -3,12 +3,12 @@
3
3
  var isValid = (module.exports.isValid = require('./borderWidth').isValid);
4
4
 
5
5
  module.exports.definition = {
6
- set: function(v) {
6
+ set: function (v) {
7
7
  if (isValid(v)) {
8
8
  this._setProperty('border-right-width', v);
9
9
  }
10
10
  },
11
- get: function() {
11
+ get: function () {
12
12
  return this.getPropertyValue('border-right-width');
13
13
  },
14
14
  enumerable: true,
@@ -20,7 +20,7 @@ var parse = function parse(v) {
20
20
  if (parts.length !== 1 && parts.length !== 2) {
21
21
  return undefined;
22
22
  }
23
- parts.forEach(function(part) {
23
+ parts.forEach(function (part) {
24
24
  if (parsers.valueType(part) !== parsers.TYPES.LENGTH) {
25
25
  return undefined;
26
26
  }
@@ -30,10 +30,10 @@ var parse = function parse(v) {
30
30
  };
31
31
 
32
32
  module.exports.definition = {
33
- set: function(v) {
33
+ set: function (v) {
34
34
  this._setProperty('border-spacing', parse(v));
35
35
  },
36
- get: function() {
36
+ get: function () {
37
37
  return this.getPropertyValue('border-spacing');
38
38
  },
39
39
  enumerable: true,
@@ -21,7 +21,7 @@ module.exports.isValid = function parse(v) {
21
21
  };
22
22
  var isValid = module.exports.isValid;
23
23
 
24
- var parser = function(v) {
24
+ var parser = function (v) {
25
25
  if (isValid(v)) {
26
26
  return v.toLowerCase();
27
27
  }
@@ -30,7 +30,7 @@ var parser = function(v) {
30
30
 
31
31
  module.exports.definition = {
32
32
  set: implicitSetter('border', 'style', isValid, parser),
33
- get: function() {
33
+ get: function () {
34
34
  return this.getPropertyValue('border-style');
35
35
  },
36
36
  enumerable: true,
@@ -3,12 +3,12 @@
3
3
  var isValid = (module.exports.isValid = require('./borderColor').isValid);
4
4
 
5
5
  module.exports.definition = {
6
- set: function(v) {
6
+ set: function (v) {
7
7
  if (isValid(v)) {
8
8
  this._setProperty('border-top-color', v);
9
9
  }
10
10
  },
11
- get: function() {
11
+ get: function () {
12
12
  return this.getPropertyValue('border-top-color');
13
13
  },
14
14
  enumerable: true,
@@ -4,7 +4,7 @@ var isValid = require('./borderStyle').isValid;
4
4
  module.exports.isValid = isValid;
5
5
 
6
6
  module.exports.definition = {
7
- set: function(v) {
7
+ set: function (v) {
8
8
  if (isValid(v)) {
9
9
  if (v.toLowerCase() === 'none') {
10
10
  v = '';
@@ -13,7 +13,7 @@ module.exports.definition = {
13
13
  this._setProperty('border-top-style', v);
14
14
  }
15
15
  },
16
- get: function() {
16
+ get: function () {
17
17
  return this.getPropertyValue('border-top-style');
18
18
  },
19
19
  enumerable: true,
@@ -4,12 +4,12 @@ var isValid = require('./borderWidth').isValid;
4
4
  module.exports.isValid = isValid;
5
5
 
6
6
  module.exports.definition = {
7
- set: function(v) {
7
+ set: function (v) {
8
8
  if (isValid(v)) {
9
9
  this._setProperty('border-top-width', v);
10
10
  }
11
11
  },
12
- get: function() {
12
+ get: function () {
13
13
  return this.getPropertyValue('border-top-width');
14
14
  },
15
15
  enumerable: true,
@@ -25,7 +25,7 @@ module.exports.isValid = function parse(v) {
25
25
  };
26
26
  var isValid = module.exports.isValid;
27
27
 
28
- var parser = function(v) {
28
+ var parser = function (v) {
29
29
  var length = parsers.parseLength(v);
30
30
  if (length !== undefined) {
31
31
  return length;
@@ -38,7 +38,7 @@ var parser = function(v) {
38
38
 
39
39
  module.exports.definition = {
40
40
  set: implicitSetter('border', 'width', isValid, parser),
41
- get: function() {
41
+ get: function () {
42
42
  return this.getPropertyValue('border-width');
43
43
  },
44
44
  enumerable: true,
@@ -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('bottom', parseMeasurement(v));
8
8
  },
9
- get: function() {
9
+ get: function () {
10
10
  return this.getPropertyValue('bottom');
11
11
  },
12
12
  enumerable: true,
@@ -5,10 +5,10 @@ var parseKeyword = require('../parsers').parseKeyword;
5
5
  var clear_keywords = ['none', 'left', 'right', 'both', 'inherit'];
6
6
 
7
7
  module.exports.definition = {
8
- set: function(v) {
8
+ set: function (v) {
9
9
  this._setProperty('clear', parseKeyword(v, clear_keywords));
10
10
  },
11
- get: function() {
11
+ get: function () {
12
12
  return this.getPropertyValue('clear');
13
13
  },
14
14
  enumerable: true,
@@ -4,7 +4,7 @@ var parseMeasurement = require('../parsers').parseMeasurement;
4
4
 
5
5
  var shape_regex = /^rect\((.*)\)$/i;
6
6
 
7
- var parse = function(val) {
7
+ var parse = function (val) {
8
8
  if (val === '' || val === null) {
9
9
  return val;
10
10
  }
@@ -23,7 +23,7 @@ var parse = function(val) {
23
23
  if (parts.length !== 4) {
24
24
  return undefined;
25
25
  }
26
- var valid = parts.every(function(part, index) {
26
+ var valid = parts.every(function (part, index) {
27
27
  var measurement = parseMeasurement(part);
28
28
  parts[index] = measurement;
29
29
  return measurement !== undefined;
@@ -36,10 +36,10 @@ var parse = function(val) {
36
36
  };
37
37
 
38
38
  module.exports.definition = {
39
- set: function(v) {
39
+ set: function (v) {
40
40
  this._setProperty('clip', parse(v));
41
41
  },
42
- get: function() {
42
+ get: function () {
43
43
  return this.getPropertyValue('clip');
44
44
  },
45
45
  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('color', parseColor(v));
8
8
  },
9
- get: function() {
9
+ get: function () {
10
10
  return this.getPropertyValue('color');
11
11
  },
12
12
  enumerable: true,
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  module.exports.definition = {
4
- set: function(v) {
4
+ set: function (v) {
5
5
  this._setProperty('float', v);
6
6
  },
7
- get: function() {
7
+ get: function () {
8
8
  return this.getPropertyValue('float');
9
9
  },
10
10
  enumerable: true,
@@ -17,10 +17,8 @@ module.exports.isValid = function isValid(v) {
17
17
  };
18
18
 
19
19
  module.exports.definition = {
20
- set: function(v) {
21
- var normalizedValue = String(v)
22
- .trim()
23
- .toLowerCase();
20
+ set: function (v) {
21
+ var normalizedValue = String(v).trim().toLowerCase();
24
22
 
25
23
  if (normalizedValue === 'none') {
26
24
  myShorthandSetter.call(this, '0 0 auto');
@@ -17,10 +17,10 @@ module.exports.isValid = function isValid(v) {
17
17
  };
18
18
 
19
19
  module.exports.definition = {
20
- set: function(v) {
20
+ set: function (v) {
21
21
  this._setProperty('flex-basis', parse(v));
22
22
  },
23
- get: function() {
23
+ get: function () {
24
24
  return this.getPropertyValue('flex-basis');
25
25
  },
26
26
  enumerable: true,
@@ -8,10 +8,10 @@ module.exports.isValid = function isValid(v, positionAtFlexShorthand) {
8
8
  };
9
9
 
10
10
  module.exports.definition = {
11
- set: function(v) {
11
+ set: function (v) {
12
12
  this._setProperty('flex-grow', parseNumber(v));
13
13
  },
14
- get: function() {
14
+ get: function () {
15
15
  return this.getPropertyValue('flex-grow');
16
16
  },
17
17
  enumerable: true,
@@ -8,10 +8,10 @@ module.exports.isValid = function isValid(v, positionAtFlexShorthand) {
8
8
  };
9
9
 
10
10
  module.exports.definition = {
11
- set: function(v) {
11
+ set: function (v) {
12
12
  this._setProperty('flex-shrink', parseNumber(v));
13
13
  },
14
- get: function() {
14
+ get: function () {
15
15
  return this.getPropertyValue('flex-shrink');
16
16
  },
17
17
  enumerable: true,
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  module.exports.definition = {
4
- set: function(v) {
4
+ set: function (v) {
5
5
  this._setProperty('float', v);
6
6
  },
7
- get: function() {
7
+ get: function () {
8
8
  return this.getPropertyValue('float');
9
9
  },
10
10
  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('flood-color', parseColor(v));
8
8
  },
9
- get: function() {
9
+ get: function () {
10
10
  return this.getPropertyValue('flood-color');
11
11
  },
12
12
  enumerable: true,
@@ -28,7 +28,7 @@ var static_fonts = [
28
28
  var setter = shorthandSetter('font', shorthand_for);
29
29
 
30
30
  module.exports.definition = {
31
- set: function(v) {
31
+ set: function (v) {
32
32
  var short = shorthandParser(v, shorthand_for);
33
33
  if (short !== undefined) {
34
34
  return setter.call(this, v);
@@ -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-family', v);
27
27
  },
28
- get: function() {
28
+ get: function () {
29
29
  return this.getPropertyValue('font-family');
30
30
  },
31
31
  enumerable: true,
@@ -7,7 +7,7 @@ var parseMeasurement = require('../parsers').parseMeasurement;
7
7
  var absoluteSizes = ['xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large'];
8
8
  var relativeSizes = ['larger', 'smaller'];
9
9
 
10
- module.exports.isValid = function(v) {
10
+ module.exports.isValid = function (v) {
11
11
  var type = valueType(v.toLowerCase());
12
12
  return (
13
13
  type === TYPES.LENGTH ||
@@ -21,16 +21,16 @@ function parse(v) {
21
21
  const valueAsString = String(v).toLowerCase();
22
22
  const optionalArguments = absoluteSizes.concat(relativeSizes);
23
23
  const isOptionalArgument = optionalArguments.some(
24
- stringValue => stringValue.toLowerCase() === valueAsString
24
+ (stringValue) => stringValue.toLowerCase() === valueAsString
25
25
  );
26
26
  return isOptionalArgument ? valueAsString : parseMeasurement(v);
27
27
  }
28
28
 
29
29
  module.exports.definition = {
30
- set: function(v) {
30
+ set: function (v) {
31
31
  this._setProperty('font-size', parse(v));
32
32
  },
33
- get: function() {
33
+ get: function () {
34
34
  return this.getPropertyValue('font-size');
35
35
  },
36
36
  enumerable: true,
@@ -2,15 +2,15 @@
2
2
 
3
3
  var valid_styles = ['normal', 'italic', 'oblique', 'inherit'];
4
4
 
5
- module.exports.isValid = function(v) {
5
+ module.exports.isValid = function (v) {
6
6
  return valid_styles.indexOf(v.toLowerCase()) !== -1;
7
7
  };
8
8
 
9
9
  module.exports.definition = {
10
- set: function(v) {
10
+ set: function (v) {
11
11
  this._setProperty('font-style', v);
12
12
  },
13
- get: function() {
13
+ get: function () {
14
14
  return this.getPropertyValue('font-style');
15
15
  },
16
16
  enumerable: true,
@@ -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,
@@ -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,
@@ -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,