From 99c1d9af689e5325f3cf535c4007b3aeb8325229 Mon Sep 17 00:00:00 2001 From: Minteck Date: Tue, 10 Jan 2023 14:54:04 +0100 Subject: Update - This is an automated commit --- .../cssstyle/lib/properties/azimuth.js | 67 --------------------- .../cssstyle/lib/properties/background.js | 19 ------ .../lib/properties/backgroundAttachment.js | 24 -------- .../cssstyle/lib/properties/backgroundColor.js | 36 ------------ .../cssstyle/lib/properties/backgroundImage.js | 32 ---------- .../cssstyle/lib/properties/backgroundPosition.js | 58 ------------------ .../cssstyle/lib/properties/backgroundRepeat.js | 32 ---------- .../node_modules/cssstyle/lib/properties/border.js | 33 ----------- .../cssstyle/lib/properties/borderBottom.js | 17 ------ .../cssstyle/lib/properties/borderBottomColor.js | 16 ----- .../cssstyle/lib/properties/borderBottomStyle.js | 21 ------- .../cssstyle/lib/properties/borderBottomWidth.js | 16 ----- .../cssstyle/lib/properties/borderCollapse.js | 26 --------- .../cssstyle/lib/properties/borderColor.js | 30 ---------- .../cssstyle/lib/properties/borderLeft.js | 17 ------ .../cssstyle/lib/properties/borderLeftColor.js | 16 ----- .../cssstyle/lib/properties/borderLeftStyle.js | 21 ------- .../cssstyle/lib/properties/borderLeftWidth.js | 16 ----- .../cssstyle/lib/properties/borderRight.js | 17 ------ .../cssstyle/lib/properties/borderRightColor.js | 16 ----- .../cssstyle/lib/properties/borderRightStyle.js | 21 ------- .../cssstyle/lib/properties/borderRightWidth.js | 16 ----- .../cssstyle/lib/properties/borderSpacing.js | 41 ------------- .../cssstyle/lib/properties/borderStyle.js | 38 ------------ .../cssstyle/lib/properties/borderTop.js | 17 ------ .../cssstyle/lib/properties/borderTopColor.js | 16 ----- .../cssstyle/lib/properties/borderTopStyle.js | 21 ------- .../cssstyle/lib/properties/borderTopWidth.js | 17 ------ .../cssstyle/lib/properties/borderWidth.js | 46 --------------- .../node_modules/cssstyle/lib/properties/bottom.js | 14 ----- .../node_modules/cssstyle/lib/properties/clear.js | 16 ----- alarm/node_modules/cssstyle/lib/properties/clip.js | 47 --------------- .../node_modules/cssstyle/lib/properties/color.js | 14 ----- .../cssstyle/lib/properties/cssFloat.js | 12 ---- alarm/node_modules/cssstyle/lib/properties/flex.js | 45 -------------- .../cssstyle/lib/properties/flexBasis.js | 28 --------- .../cssstyle/lib/properties/flexGrow.js | 19 ------ .../cssstyle/lib/properties/flexShrink.js | 19 ------ .../node_modules/cssstyle/lib/properties/float.js | 12 ---- .../cssstyle/lib/properties/floodColor.js | 14 ----- alarm/node_modules/cssstyle/lib/properties/font.js | 43 -------------- .../cssstyle/lib/properties/fontFamily.js | 33 ----------- .../cssstyle/lib/properties/fontSize.js | 38 ------------ .../cssstyle/lib/properties/fontStyle.js | 18 ------ .../cssstyle/lib/properties/fontVariant.js | 18 ------ .../cssstyle/lib/properties/fontWeight.js | 33 ----------- .../node_modules/cssstyle/lib/properties/height.js | 24 -------- alarm/node_modules/cssstyle/lib/properties/left.js | 14 ----- .../cssstyle/lib/properties/lightingColor.js | 14 ----- .../cssstyle/lib/properties/lineHeight.js | 26 --------- .../node_modules/cssstyle/lib/properties/margin.js | 68 ---------------------- .../cssstyle/lib/properties/marginBottom.js | 13 ----- .../cssstyle/lib/properties/marginLeft.js | 13 ----- .../cssstyle/lib/properties/marginRight.js | 13 ----- .../cssstyle/lib/properties/marginTop.js | 13 ----- .../cssstyle/lib/properties/opacity.js | 14 ----- .../cssstyle/lib/properties/outlineColor.js | 14 ----- .../cssstyle/lib/properties/padding.js | 61 ------------------- .../cssstyle/lib/properties/paddingBottom.js | 13 ----- .../cssstyle/lib/properties/paddingLeft.js | 13 ----- .../cssstyle/lib/properties/paddingRight.js | 13 ----- .../cssstyle/lib/properties/paddingTop.js | 13 ----- .../node_modules/cssstyle/lib/properties/right.js | 14 ----- .../cssstyle/lib/properties/stopColor.js | 14 ----- .../lib/properties/textLineThroughColor.js | 14 ----- .../cssstyle/lib/properties/textOverlineColor.js | 14 ----- .../cssstyle/lib/properties/textUnderlineColor.js | 14 ----- alarm/node_modules/cssstyle/lib/properties/top.js | 14 ----- .../lib/properties/webkitBorderAfterColor.js | 14 ----- .../lib/properties/webkitBorderBeforeColor.js | 14 ----- .../lib/properties/webkitBorderEndColor.js | 14 ----- .../lib/properties/webkitBorderStartColor.js | 14 ----- .../lib/properties/webkitColumnRuleColor.js | 14 ----- .../webkitMatchNearestMailBlockquoteColor.js | 14 ----- .../lib/properties/webkitTapHighlightColor.js | 14 ----- .../lib/properties/webkitTextEmphasisColor.js | 14 ----- .../cssstyle/lib/properties/webkitTextFillColor.js | 14 ----- .../lib/properties/webkitTextStrokeColor.js | 14 ----- .../node_modules/cssstyle/lib/properties/width.js | 24 -------- 79 files changed, 1773 deletions(-) delete mode 100644 alarm/node_modules/cssstyle/lib/properties/azimuth.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/background.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/backgroundAttachment.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/backgroundColor.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/backgroundImage.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/backgroundPosition.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/backgroundRepeat.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/border.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/borderBottom.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/borderBottomColor.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/borderBottomStyle.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/borderBottomWidth.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/borderCollapse.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/borderColor.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/borderLeft.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/borderLeftColor.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/borderLeftStyle.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/borderLeftWidth.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/borderRight.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/borderRightColor.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/borderRightStyle.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/borderRightWidth.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/borderSpacing.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/borderStyle.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/borderTop.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/borderTopColor.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/borderTopStyle.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/borderTopWidth.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/borderWidth.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/bottom.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/clear.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/clip.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/color.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/cssFloat.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/flex.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/flexBasis.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/flexGrow.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/flexShrink.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/float.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/floodColor.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/font.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/fontFamily.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/fontSize.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/fontStyle.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/fontVariant.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/fontWeight.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/height.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/left.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/lightingColor.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/lineHeight.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/margin.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/marginBottom.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/marginLeft.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/marginRight.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/marginTop.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/opacity.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/outlineColor.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/padding.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/paddingBottom.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/paddingLeft.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/paddingRight.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/paddingTop.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/right.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/stopColor.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/textLineThroughColor.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/textOverlineColor.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/textUnderlineColor.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/top.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/webkitBorderAfterColor.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/webkitBorderBeforeColor.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/webkitBorderEndColor.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/webkitBorderStartColor.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/webkitColumnRuleColor.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/webkitMatchNearestMailBlockquoteColor.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/webkitTapHighlightColor.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/webkitTextEmphasisColor.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/webkitTextFillColor.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/webkitTextStrokeColor.js delete mode 100644 alarm/node_modules/cssstyle/lib/properties/width.js (limited to 'alarm/node_modules/cssstyle/lib/properties') diff --git a/alarm/node_modules/cssstyle/lib/properties/azimuth.js b/alarm/node_modules/cssstyle/lib/properties/azimuth.js deleted file mode 100644 index f23a68d..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/azimuth.js +++ /dev/null @@ -1,67 +0,0 @@ -'use strict'; - -var parsers = require('../parsers'); - -module.exports.definition = { - set: function(v) { - var valueType = parsers.valueType(v); - if (valueType === parsers.TYPES.ANGLE) { - return this._setProperty('azimuth', parsers.parseAngle(v)); - } - if (valueType === parsers.TYPES.KEYWORD) { - var keywords = v - .toLowerCase() - .trim() - .split(/\s+/); - var hasBehind = false; - if (keywords.length > 2) { - return; - } - var behindIndex = keywords.indexOf('behind'); - hasBehind = behindIndex !== -1; - - if (keywords.length === 2) { - if (!hasBehind) { - return; - } - keywords.splice(behindIndex, 1); - } - if (keywords[0] === 'leftwards' || keywords[0] === 'rightwards') { - if (hasBehind) { - return; - } - return this._setProperty('azimuth', keywords[0]); - } - if (keywords[0] === 'behind') { - return this._setProperty('azimuth', '180deg'); - } - switch (keywords[0]) { - case 'left-side': - return this._setProperty('azimuth', '270deg'); - case 'far-left': - return this._setProperty('azimuth', (hasBehind ? 240 : 300) + 'deg'); - case 'left': - return this._setProperty('azimuth', (hasBehind ? 220 : 320) + 'deg'); - case 'center-left': - return this._setProperty('azimuth', (hasBehind ? 200 : 340) + 'deg'); - case 'center': - return this._setProperty('azimuth', (hasBehind ? 180 : 0) + 'deg'); - case 'center-right': - return this._setProperty('azimuth', (hasBehind ? 160 : 20) + 'deg'); - case 'right': - return this._setProperty('azimuth', (hasBehind ? 140 : 40) + 'deg'); - case 'far-right': - return this._setProperty('azimuth', (hasBehind ? 120 : 60) + 'deg'); - case 'right-side': - return this._setProperty('azimuth', '90deg'); - default: - return; - } - } - }, - get: function() { - return this.getPropertyValue('azimuth'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/background.js b/alarm/node_modules/cssstyle/lib/properties/background.js deleted file mode 100644 index b843e0c..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/background.js +++ /dev/null @@ -1,19 +0,0 @@ -'use strict'; - -var shorthandSetter = require('../parsers').shorthandSetter; -var shorthandGetter = require('../parsers').shorthandGetter; - -var shorthand_for = { - 'background-color': require('./backgroundColor'), - 'background-image': require('./backgroundImage'), - 'background-repeat': require('./backgroundRepeat'), - 'background-attachment': require('./backgroundAttachment'), - 'background-position': require('./backgroundPosition'), -}; - -module.exports.definition = { - set: shorthandSetter('background', shorthand_for), - get: shorthandGetter('background', shorthand_for), - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/backgroundAttachment.js b/alarm/node_modules/cssstyle/lib/properties/backgroundAttachment.js deleted file mode 100644 index 98c8f76..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/backgroundAttachment.js +++ /dev/null @@ -1,24 +0,0 @@ -'use strict'; - -var parsers = require('../parsers'); - -var isValid = (module.exports.isValid = function isValid(v) { - return ( - parsers.valueType(v) === parsers.TYPES.KEYWORD && - (v.toLowerCase() === 'scroll' || v.toLowerCase() === 'fixed' || v.toLowerCase() === 'inherit') - ); -}); - -module.exports.definition = { - set: function(v) { - if (!isValid(v)) { - return; - } - this._setProperty('background-attachment', v); - }, - get: function() { - return this.getPropertyValue('background-attachment'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/backgroundColor.js b/alarm/node_modules/cssstyle/lib/properties/backgroundColor.js deleted file mode 100644 index 5cee717..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/backgroundColor.js +++ /dev/null @@ -1,36 +0,0 @@ -'use strict'; - -var parsers = require('../parsers'); - -var parse = function parse(v) { - var parsed = parsers.parseColor(v); - if (parsed !== undefined) { - return parsed; - } - if ( - parsers.valueType(v) === parsers.TYPES.KEYWORD && - (v.toLowerCase() === 'transparent' || v.toLowerCase() === 'inherit') - ) { - return v; - } - return undefined; -}; - -module.exports.isValid = function isValid(v) { - return parse(v) !== undefined; -}; - -module.exports.definition = { - set: function(v) { - var parsed = parse(v); - if (parsed === undefined) { - return; - } - this._setProperty('background-color', parsed); - }, - get: function() { - return this.getPropertyValue('background-color'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/backgroundImage.js b/alarm/node_modules/cssstyle/lib/properties/backgroundImage.js deleted file mode 100644 index b6479a1..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/backgroundImage.js +++ /dev/null @@ -1,32 +0,0 @@ -'use strict'; - -var parsers = require('../parsers'); - -var parse = function parse(v) { - var parsed = parsers.parseUrl(v); - if (parsed !== undefined) { - return parsed; - } - if ( - parsers.valueType(v) === parsers.TYPES.KEYWORD && - (v.toLowerCase() === 'none' || v.toLowerCase() === 'inherit') - ) { - return v; - } - return undefined; -}; - -module.exports.isValid = function isValid(v) { - return parse(v) !== undefined; -}; - -module.exports.definition = { - set: function(v) { - this._setProperty('background-image', parse(v)); - }, - get: function() { - return this.getPropertyValue('background-image'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/backgroundPosition.js b/alarm/node_modules/cssstyle/lib/properties/backgroundPosition.js deleted file mode 100644 index 4405fe6..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/backgroundPosition.js +++ /dev/null @@ -1,58 +0,0 @@ -'use strict'; - -var parsers = require('../parsers'); - -var valid_keywords = ['top', 'center', 'bottom', 'left', 'right']; - -var parse = function parse(v) { - if (v === '' || v === null) { - return undefined; - } - var parts = v.split(/\s+/); - if (parts.length > 2 || parts.length < 1) { - return undefined; - } - var types = []; - parts.forEach(function(part, index) { - types[index] = parsers.valueType(part); - }); - if (parts.length === 1) { - if (types[0] === parsers.TYPES.LENGTH || types[0] === parsers.TYPES.PERCENT) { - return v; - } - if (types[0] === parsers.TYPES.KEYWORD) { - if (valid_keywords.indexOf(v.toLowerCase()) !== -1 || v.toLowerCase() === 'inherit') { - return v; - } - } - return undefined; - } - if ( - (types[0] === parsers.TYPES.LENGTH || types[0] === parsers.TYPES.PERCENT) && - (types[1] === parsers.TYPES.LENGTH || types[1] === parsers.TYPES.PERCENT) - ) { - return v; - } - if (types[0] !== parsers.TYPES.KEYWORD || types[1] !== parsers.TYPES.KEYWORD) { - return undefined; - } - if (valid_keywords.indexOf(parts[0]) !== -1 && valid_keywords.indexOf(parts[1]) !== -1) { - return v; - } - return undefined; -}; - -module.exports.isValid = function isValid(v) { - return parse(v) !== undefined; -}; - -module.exports.definition = { - set: function(v) { - this._setProperty('background-position', parse(v)); - }, - get: function() { - return this.getPropertyValue('background-position'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/backgroundRepeat.js b/alarm/node_modules/cssstyle/lib/properties/backgroundRepeat.js deleted file mode 100644 index 379ade0..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/backgroundRepeat.js +++ /dev/null @@ -1,32 +0,0 @@ -'use strict'; - -var parsers = require('../parsers'); - -var parse = function parse(v) { - if ( - parsers.valueType(v) === parsers.TYPES.KEYWORD && - (v.toLowerCase() === 'repeat' || - v.toLowerCase() === 'repeat-x' || - v.toLowerCase() === 'repeat-y' || - v.toLowerCase() === 'no-repeat' || - v.toLowerCase() === 'inherit') - ) { - return v; - } - return undefined; -}; - -module.exports.isValid = function isValid(v) { - return parse(v) !== undefined; -}; - -module.exports.definition = { - set: function(v) { - this._setProperty('background-repeat', parse(v)); - }, - get: function() { - return this.getPropertyValue('background-repeat'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/border.js b/alarm/node_modules/cssstyle/lib/properties/border.js deleted file mode 100644 index bf5b5d6..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/border.js +++ /dev/null @@ -1,33 +0,0 @@ -'use strict'; - -var shorthandSetter = require('../parsers').shorthandSetter; -var shorthandGetter = require('../parsers').shorthandGetter; - -var shorthand_for = { - 'border-width': require('./borderWidth'), - 'border-style': require('./borderStyle'), - 'border-color': require('./borderColor'), -}; - -var myShorthandSetter = shorthandSetter('border', shorthand_for); -var myShorthandGetter = shorthandGetter('border', shorthand_for); - -module.exports.definition = { - set: function(v) { - if (v.toString().toLowerCase() === 'none') { - v = ''; - } - myShorthandSetter.call(this, v); - this.removeProperty('border-top'); - this.removeProperty('border-left'); - this.removeProperty('border-right'); - this.removeProperty('border-bottom'); - this._values['border-top'] = this._values.border; - this._values['border-left'] = this._values.border; - this._values['border-right'] = this._values.border; - this._values['border-bottom'] = this._values.border; - }, - get: myShorthandGetter, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/borderBottom.js b/alarm/node_modules/cssstyle/lib/properties/borderBottom.js deleted file mode 100644 index aae2e5f..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/borderBottom.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict'; - -var shorthandSetter = require('../parsers').shorthandSetter; -var shorthandGetter = require('../parsers').shorthandGetter; - -var shorthand_for = { - 'border-bottom-width': require('./borderBottomWidth'), - 'border-bottom-style': require('./borderBottomStyle'), - 'border-bottom-color': require('./borderBottomColor'), -}; - -module.exports.definition = { - set: shorthandSetter('border-bottom', shorthand_for), - get: shorthandGetter('border-bottom', shorthand_for), - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/borderBottomColor.js b/alarm/node_modules/cssstyle/lib/properties/borderBottomColor.js deleted file mode 100644 index da5a4b5..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/borderBottomColor.js +++ /dev/null @@ -1,16 +0,0 @@ -'use strict'; - -var isValid = (module.exports.isValid = require('./borderColor').isValid); - -module.exports.definition = { - set: function(v) { - if (isValid(v)) { - this._setProperty('border-bottom-color', v); - } - }, - get: function() { - return this.getPropertyValue('border-bottom-color'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/borderBottomStyle.js b/alarm/node_modules/cssstyle/lib/properties/borderBottomStyle.js deleted file mode 100644 index 35c44f0..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/borderBottomStyle.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict'; - -var isValid = require('./borderStyle').isValid; -module.exports.isValid = isValid; - -module.exports.definition = { - set: function(v) { - if (isValid(v)) { - if (v.toLowerCase() === 'none') { - v = ''; - this.removeProperty('border-bottom-width'); - } - this._setProperty('border-bottom-style', v); - } - }, - get: function() { - return this.getPropertyValue('border-bottom-style'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/borderBottomWidth.js b/alarm/node_modules/cssstyle/lib/properties/borderBottomWidth.js deleted file mode 100644 index db2e3b8..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/borderBottomWidth.js +++ /dev/null @@ -1,16 +0,0 @@ -'use strict'; - -var isValid = (module.exports.isValid = require('./borderWidth').isValid); - -module.exports.definition = { - set: function(v) { - if (isValid(v)) { - this._setProperty('border-bottom-width', v); - } - }, - get: function() { - return this.getPropertyValue('border-bottom-width'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/borderCollapse.js b/alarm/node_modules/cssstyle/lib/properties/borderCollapse.js deleted file mode 100644 index 49bdeb0..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/borderCollapse.js +++ /dev/null @@ -1,26 +0,0 @@ -'use strict'; - -var parsers = require('../parsers'); - -var parse = function parse(v) { - if ( - parsers.valueType(v) === parsers.TYPES.KEYWORD && - (v.toLowerCase() === 'collapse' || - v.toLowerCase() === 'separate' || - v.toLowerCase() === 'inherit') - ) { - return v; - } - return undefined; -}; - -module.exports.definition = { - set: function(v) { - this._setProperty('border-collapse', parse(v)); - }, - get: function() { - return this.getPropertyValue('border-collapse'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/borderColor.js b/alarm/node_modules/cssstyle/lib/properties/borderColor.js deleted file mode 100644 index 6605e07..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/borderColor.js +++ /dev/null @@ -1,30 +0,0 @@ -'use strict'; - -var parsers = require('../parsers'); -var implicitSetter = require('../parsers').implicitSetter; - -module.exports.isValid = function parse(v) { - if (typeof v !== 'string') { - return false; - } - return ( - v === '' || v.toLowerCase() === 'transparent' || parsers.valueType(v) === parsers.TYPES.COLOR - ); -}; -var isValid = module.exports.isValid; - -var parser = function(v) { - if (isValid(v)) { - return v.toLowerCase(); - } - return undefined; -}; - -module.exports.definition = { - set: implicitSetter('border', 'color', isValid, parser), - get: function() { - return this.getPropertyValue('border-color'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/borderLeft.js b/alarm/node_modules/cssstyle/lib/properties/borderLeft.js deleted file mode 100644 index a05945e..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/borderLeft.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict'; - -var shorthandSetter = require('../parsers').shorthandSetter; -var shorthandGetter = require('../parsers').shorthandGetter; - -var shorthand_for = { - 'border-left-width': require('./borderLeftWidth'), - 'border-left-style': require('./borderLeftStyle'), - 'border-left-color': require('./borderLeftColor'), -}; - -module.exports.definition = { - set: shorthandSetter('border-left', shorthand_for), - get: shorthandGetter('border-left', shorthand_for), - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/borderLeftColor.js b/alarm/node_modules/cssstyle/lib/properties/borderLeftColor.js deleted file mode 100644 index eb3f273..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/borderLeftColor.js +++ /dev/null @@ -1,16 +0,0 @@ -'use strict'; - -var isValid = (module.exports.isValid = require('./borderColor').isValid); - -module.exports.definition = { - set: function(v) { - if (isValid(v)) { - this._setProperty('border-left-color', v); - } - }, - get: function() { - return this.getPropertyValue('border-left-color'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/borderLeftStyle.js b/alarm/node_modules/cssstyle/lib/properties/borderLeftStyle.js deleted file mode 100644 index 5e8a113..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/borderLeftStyle.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict'; - -var isValid = require('./borderStyle').isValid; -module.exports.isValid = isValid; - -module.exports.definition = { - set: function(v) { - if (isValid(v)) { - if (v.toLowerCase() === 'none') { - v = ''; - this.removeProperty('border-left-width'); - } - this._setProperty('border-left-style', v); - } - }, - get: function() { - return this.getPropertyValue('border-left-style'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/borderLeftWidth.js b/alarm/node_modules/cssstyle/lib/properties/borderLeftWidth.js deleted file mode 100644 index 8c680b1..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/borderLeftWidth.js +++ /dev/null @@ -1,16 +0,0 @@ -'use strict'; - -var isValid = (module.exports.isValid = require('./borderWidth').isValid); - -module.exports.definition = { - set: function(v) { - if (isValid(v)) { - this._setProperty('border-left-width', v); - } - }, - get: function() { - return this.getPropertyValue('border-left-width'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/borderRight.js b/alarm/node_modules/cssstyle/lib/properties/borderRight.js deleted file mode 100644 index 17e26df..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/borderRight.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict'; - -var shorthandSetter = require('../parsers').shorthandSetter; -var shorthandGetter = require('../parsers').shorthandGetter; - -var shorthand_for = { - 'border-right-width': require('./borderRightWidth'), - 'border-right-style': require('./borderRightStyle'), - 'border-right-color': require('./borderRightColor'), -}; - -module.exports.definition = { - set: shorthandSetter('border-right', shorthand_for), - get: shorthandGetter('border-right', shorthand_for), - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/borderRightColor.js b/alarm/node_modules/cssstyle/lib/properties/borderRightColor.js deleted file mode 100644 index 7c188f2..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/borderRightColor.js +++ /dev/null @@ -1,16 +0,0 @@ -'use strict'; - -var isValid = (module.exports.isValid = require('./borderColor').isValid); - -module.exports.definition = { - set: function(v) { - if (isValid(v)) { - this._setProperty('border-right-color', v); - } - }, - get: function() { - return this.getPropertyValue('border-right-color'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/borderRightStyle.js b/alarm/node_modules/cssstyle/lib/properties/borderRightStyle.js deleted file mode 100644 index 68e8209..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/borderRightStyle.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict'; - -var isValid = require('./borderStyle').isValid; -module.exports.isValid = isValid; - -module.exports.definition = { - set: function(v) { - if (isValid(v)) { - if (v.toLowerCase() === 'none') { - v = ''; - this.removeProperty('border-right-width'); - } - this._setProperty('border-right-style', v); - } - }, - get: function() { - return this.getPropertyValue('border-right-style'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/borderRightWidth.js b/alarm/node_modules/cssstyle/lib/properties/borderRightWidth.js deleted file mode 100644 index d1090d7..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/borderRightWidth.js +++ /dev/null @@ -1,16 +0,0 @@ -'use strict'; - -var isValid = (module.exports.isValid = require('./borderWidth').isValid); - -module.exports.definition = { - set: function(v) { - if (isValid(v)) { - this._setProperty('border-right-width', v); - } - }, - get: function() { - return this.getPropertyValue('border-right-width'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/borderSpacing.js b/alarm/node_modules/cssstyle/lib/properties/borderSpacing.js deleted file mode 100644 index ff1ce88..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/borderSpacing.js +++ /dev/null @@ -1,41 +0,0 @@ -'use strict'; - -var parsers = require('../parsers'); - -// ? | inherit -// if one, it applies to both horizontal and verical spacing -// if two, the first applies to the horizontal and the second applies to vertical spacing - -var parse = function parse(v) { - if (v === '' || v === null) { - return undefined; - } - if (v === 0) { - return '0px'; - } - if (v.toLowerCase() === 'inherit') { - return v; - } - var parts = v.split(/\s+/); - if (parts.length !== 1 && parts.length !== 2) { - return undefined; - } - parts.forEach(function(part) { - if (parsers.valueType(part) !== parsers.TYPES.LENGTH) { - return undefined; - } - }); - - return v; -}; - -module.exports.definition = { - set: function(v) { - this._setProperty('border-spacing', parse(v)); - }, - get: function() { - return this.getPropertyValue('border-spacing'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/borderStyle.js b/alarm/node_modules/cssstyle/lib/properties/borderStyle.js deleted file mode 100644 index 6e3e674..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/borderStyle.js +++ /dev/null @@ -1,38 +0,0 @@ -'use strict'; - -var implicitSetter = require('../parsers').implicitSetter; - -// the valid border-styles: -var styles = [ - 'none', - 'hidden', - 'dotted', - 'dashed', - 'solid', - 'double', - 'groove', - 'ridge', - 'inset', - 'outset', -]; - -module.exports.isValid = function parse(v) { - return typeof v === 'string' && (v === '' || styles.indexOf(v) !== -1); -}; -var isValid = module.exports.isValid; - -var parser = function(v) { - if (isValid(v)) { - return v.toLowerCase(); - } - return undefined; -}; - -module.exports.definition = { - set: implicitSetter('border', 'style', isValid, parser), - get: function() { - return this.getPropertyValue('border-style'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/borderTop.js b/alarm/node_modules/cssstyle/lib/properties/borderTop.js deleted file mode 100644 index c56d592..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/borderTop.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict'; - -var shorthandSetter = require('../parsers').shorthandSetter; -var shorthandGetter = require('../parsers').shorthandGetter; - -var shorthand_for = { - 'border-top-width': require('./borderTopWidth'), - 'border-top-style': require('./borderTopStyle'), - 'border-top-color': require('./borderTopColor'), -}; - -module.exports.definition = { - set: shorthandSetter('border-top', shorthand_for), - get: shorthandGetter('border-top', shorthand_for), - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/borderTopColor.js b/alarm/node_modules/cssstyle/lib/properties/borderTopColor.js deleted file mode 100644 index cc35392..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/borderTopColor.js +++ /dev/null @@ -1,16 +0,0 @@ -'use strict'; - -var isValid = (module.exports.isValid = require('./borderColor').isValid); - -module.exports.definition = { - set: function(v) { - if (isValid(v)) { - this._setProperty('border-top-color', v); - } - }, - get: function() { - return this.getPropertyValue('border-top-color'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/borderTopStyle.js b/alarm/node_modules/cssstyle/lib/properties/borderTopStyle.js deleted file mode 100644 index 938ea40..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/borderTopStyle.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict'; - -var isValid = require('./borderStyle').isValid; -module.exports.isValid = isValid; - -module.exports.definition = { - set: function(v) { - if (isValid(v)) { - if (v.toLowerCase() === 'none') { - v = ''; - this.removeProperty('border-top-width'); - } - this._setProperty('border-top-style', v); - } - }, - get: function() { - return this.getPropertyValue('border-top-style'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/borderTopWidth.js b/alarm/node_modules/cssstyle/lib/properties/borderTopWidth.js deleted file mode 100644 index 9407253..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/borderTopWidth.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict'; - -var isValid = require('./borderWidth').isValid; -module.exports.isValid = isValid; - -module.exports.definition = { - set: function(v) { - if (isValid(v)) { - this._setProperty('border-top-width', v); - } - }, - get: function() { - return this.getPropertyValue('border-top-width'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/borderWidth.js b/alarm/node_modules/cssstyle/lib/properties/borderWidth.js deleted file mode 100644 index 2b6d871..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/borderWidth.js +++ /dev/null @@ -1,46 +0,0 @@ -'use strict'; - -var parsers = require('../parsers'); -var implicitSetter = require('../parsers').implicitSetter; - -// the valid border-widths: -var widths = ['thin', 'medium', 'thick']; - -module.exports.isValid = function parse(v) { - var length = parsers.parseLength(v); - if (length !== undefined) { - return true; - } - if (typeof v !== 'string') { - return false; - } - if (v === '') { - return true; - } - v = v.toLowerCase(); - if (widths.indexOf(v) === -1) { - return false; - } - return true; -}; -var isValid = module.exports.isValid; - -var parser = function(v) { - var length = parsers.parseLength(v); - if (length !== undefined) { - return length; - } - if (isValid(v)) { - return v.toLowerCase(); - } - return undefined; -}; - -module.exports.definition = { - set: implicitSetter('border', 'width', isValid, parser), - get: function() { - return this.getPropertyValue('border-width'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/bottom.js b/alarm/node_modules/cssstyle/lib/properties/bottom.js deleted file mode 100644 index e9d72b2..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/bottom.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -var parseMeasurement = require('../parsers').parseMeasurement; - -module.exports.definition = { - set: function(v) { - this._setProperty('bottom', parseMeasurement(v)); - }, - get: function() { - return this.getPropertyValue('bottom'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/clear.js b/alarm/node_modules/cssstyle/lib/properties/clear.js deleted file mode 100644 index 22d9802..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/clear.js +++ /dev/null @@ -1,16 +0,0 @@ -'use strict'; - -var parseKeyword = require('../parsers').parseKeyword; - -var clear_keywords = ['none', 'left', 'right', 'both', 'inherit']; - -module.exports.definition = { - set: function(v) { - this._setProperty('clear', parseKeyword(v, clear_keywords)); - }, - get: function() { - return this.getPropertyValue('clear'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/clip.js b/alarm/node_modules/cssstyle/lib/properties/clip.js deleted file mode 100644 index 91ba675..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/clip.js +++ /dev/null @@ -1,47 +0,0 @@ -'use strict'; - -var parseMeasurement = require('../parsers').parseMeasurement; - -var shape_regex = /^rect\((.*)\)$/i; - -var parse = function(val) { - if (val === '' || val === null) { - return val; - } - if (typeof val !== 'string') { - return undefined; - } - val = val.toLowerCase(); - if (val === 'auto' || val === 'inherit') { - return val; - } - var matches = val.match(shape_regex); - if (!matches) { - return undefined; - } - var parts = matches[1].split(/\s*,\s*/); - if (parts.length !== 4) { - return undefined; - } - var valid = parts.every(function(part, index) { - var measurement = parseMeasurement(part); - parts[index] = measurement; - return measurement !== undefined; - }); - if (!valid) { - return undefined; - } - parts = parts.join(', '); - return val.replace(matches[1], parts); -}; - -module.exports.definition = { - set: function(v) { - this._setProperty('clip', parse(v)); - }, - get: function() { - return this.getPropertyValue('clip'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/color.js b/alarm/node_modules/cssstyle/lib/properties/color.js deleted file mode 100644 index 1b5ca3d..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/color.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -var parseColor = require('../parsers').parseColor; - -module.exports.definition = { - set: function(v) { - this._setProperty('color', parseColor(v)); - }, - get: function() { - return this.getPropertyValue('color'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/cssFloat.js b/alarm/node_modules/cssstyle/lib/properties/cssFloat.js deleted file mode 100644 index 1c619cc..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/cssFloat.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; - -module.exports.definition = { - set: function(v) { - this._setProperty('float', v); - }, - get: function() { - return this.getPropertyValue('float'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/flex.js b/alarm/node_modules/cssstyle/lib/properties/flex.js deleted file mode 100644 index b56fd55..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/flex.js +++ /dev/null @@ -1,45 +0,0 @@ -'use strict'; - -var shorthandParser = require('../parsers').shorthandParser; -var shorthandSetter = require('../parsers').shorthandSetter; -var shorthandGetter = require('../parsers').shorthandGetter; - -var shorthand_for = { - 'flex-grow': require('./flexGrow'), - 'flex-shrink': require('./flexShrink'), - 'flex-basis': require('./flexBasis'), -}; - -var myShorthandSetter = shorthandSetter('flex', shorthand_for); - -module.exports.isValid = function isValid(v) { - return shorthandParser(v, shorthand_for) !== undefined; -}; - -module.exports.definition = { - set: function(v) { - var normalizedValue = String(v) - .trim() - .toLowerCase(); - - if (normalizedValue === 'none') { - myShorthandSetter.call(this, '0 0 auto'); - return; - } - if (normalizedValue === 'initial') { - myShorthandSetter.call(this, '0 1 auto'); - return; - } - if (normalizedValue === 'auto') { - this.removeProperty('flex-grow'); - this.removeProperty('flex-shrink'); - this.setProperty('flex-basis', normalizedValue); - return; - } - - myShorthandSetter.call(this, v); - }, - get: shorthandGetter('flex', shorthand_for), - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/flexBasis.js b/alarm/node_modules/cssstyle/lib/properties/flexBasis.js deleted file mode 100644 index 0c7cddf..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/flexBasis.js +++ /dev/null @@ -1,28 +0,0 @@ -'use strict'; - -var parseMeasurement = require('../parsers').parseMeasurement; - -function parse(v) { - if (String(v).toLowerCase() === 'auto') { - return 'auto'; - } - if (String(v).toLowerCase() === 'inherit') { - return 'inherit'; - } - return parseMeasurement(v); -} - -module.exports.isValid = function isValid(v) { - return parse(v) !== undefined; -}; - -module.exports.definition = { - set: function(v) { - this._setProperty('flex-basis', parse(v)); - }, - get: function() { - return this.getPropertyValue('flex-basis'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/flexGrow.js b/alarm/node_modules/cssstyle/lib/properties/flexGrow.js deleted file mode 100644 index 6e29663..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/flexGrow.js +++ /dev/null @@ -1,19 +0,0 @@ -'use strict'; - -var parseNumber = require('../parsers').parseNumber; -var POSITION_AT_SHORTHAND = require('../constants').POSITION_AT_SHORTHAND; - -module.exports.isValid = function isValid(v, positionAtFlexShorthand) { - return parseNumber(v) !== undefined && positionAtFlexShorthand === POSITION_AT_SHORTHAND.first; -}; - -module.exports.definition = { - set: function(v) { - this._setProperty('flex-grow', parseNumber(v)); - }, - get: function() { - return this.getPropertyValue('flex-grow'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/flexShrink.js b/alarm/node_modules/cssstyle/lib/properties/flexShrink.js deleted file mode 100644 index 63ff86f..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/flexShrink.js +++ /dev/null @@ -1,19 +0,0 @@ -'use strict'; - -var parseNumber = require('../parsers').parseNumber; -var POSITION_AT_SHORTHAND = require('../constants').POSITION_AT_SHORTHAND; - -module.exports.isValid = function isValid(v, positionAtFlexShorthand) { - return parseNumber(v) !== undefined && positionAtFlexShorthand === POSITION_AT_SHORTHAND.second; -}; - -module.exports.definition = { - set: function(v) { - this._setProperty('flex-shrink', parseNumber(v)); - }, - get: function() { - return this.getPropertyValue('flex-shrink'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/float.js b/alarm/node_modules/cssstyle/lib/properties/float.js deleted file mode 100644 index 1c619cc..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/float.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; - -module.exports.definition = { - set: function(v) { - this._setProperty('float', v); - }, - get: function() { - return this.getPropertyValue('float'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/floodColor.js b/alarm/node_modules/cssstyle/lib/properties/floodColor.js deleted file mode 100644 index 8a4f29c..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/floodColor.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -var parseColor = require('../parsers').parseColor; - -module.exports.definition = { - set: function(v) { - this._setProperty('flood-color', parseColor(v)); - }, - get: function() { - return this.getPropertyValue('flood-color'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/font.js b/alarm/node_modules/cssstyle/lib/properties/font.js deleted file mode 100644 index 9492dc6..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/font.js +++ /dev/null @@ -1,43 +0,0 @@ -'use strict'; - -var TYPES = require('../parsers').TYPES; -var valueType = require('../parsers').valueType; -var shorthandParser = require('../parsers').shorthandParser; -var shorthandSetter = require('../parsers').shorthandSetter; -var shorthandGetter = require('../parsers').shorthandGetter; - -var shorthand_for = { - 'font-family': require('./fontFamily'), - 'font-size': require('./fontSize'), - 'font-style': require('./fontStyle'), - 'font-variant': require('./fontVariant'), - 'font-weight': require('./fontWeight'), - 'line-height': require('./lineHeight'), -}; - -var static_fonts = [ - 'caption', - 'icon', - 'menu', - 'message-box', - 'small-caption', - 'status-bar', - 'inherit', -]; - -var setter = shorthandSetter('font', shorthand_for); - -module.exports.definition = { - set: function(v) { - var short = shorthandParser(v, shorthand_for); - if (short !== undefined) { - return setter.call(this, v); - } - if (valueType(v) === TYPES.KEYWORD && static_fonts.indexOf(v.toLowerCase()) !== -1) { - this._setProperty('font', v); - } - }, - get: shorthandGetter('font', shorthand_for), - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/fontFamily.js b/alarm/node_modules/cssstyle/lib/properties/fontFamily.js deleted file mode 100644 index 40bd1c1..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/fontFamily.js +++ /dev/null @@ -1,33 +0,0 @@ -'use strict'; - -var TYPES = require('../parsers').TYPES; -var valueType = require('../parsers').valueType; - -var partsRegEx = /\s*,\s*/; -module.exports.isValid = function isValid(v) { - if (v === '' || v === null) { - return true; - } - var parts = v.split(partsRegEx); - var len = parts.length; - var i; - var type; - for (i = 0; i < len; i++) { - type = valueType(parts[i]); - if (type === TYPES.STRING || type === TYPES.KEYWORD) { - return true; - } - } - return false; -}; - -module.exports.definition = { - set: function(v) { - this._setProperty('font-family', v); - }, - get: function() { - return this.getPropertyValue('font-family'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/fontSize.js b/alarm/node_modules/cssstyle/lib/properties/fontSize.js deleted file mode 100644 index c956324..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/fontSize.js +++ /dev/null @@ -1,38 +0,0 @@ -'use strict'; - -var TYPES = require('../parsers').TYPES; -var valueType = require('../parsers').valueType; -var parseMeasurement = require('../parsers').parseMeasurement; - -var absoluteSizes = ['xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large']; -var relativeSizes = ['larger', 'smaller']; - -module.exports.isValid = function(v) { - var type = valueType(v.toLowerCase()); - return ( - type === TYPES.LENGTH || - type === TYPES.PERCENT || - (type === TYPES.KEYWORD && absoluteSizes.indexOf(v.toLowerCase()) !== -1) || - (type === TYPES.KEYWORD && relativeSizes.indexOf(v.toLowerCase()) !== -1) - ); -}; - -function parse(v) { - const valueAsString = String(v).toLowerCase(); - const optionalArguments = absoluteSizes.concat(relativeSizes); - const isOptionalArgument = optionalArguments.some( - stringValue => stringValue.toLowerCase() === valueAsString - ); - return isOptionalArgument ? valueAsString : parseMeasurement(v); -} - -module.exports.definition = { - set: function(v) { - this._setProperty('font-size', parse(v)); - }, - get: function() { - return this.getPropertyValue('font-size'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/fontStyle.js b/alarm/node_modules/cssstyle/lib/properties/fontStyle.js deleted file mode 100644 index 63d5e92..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/fontStyle.js +++ /dev/null @@ -1,18 +0,0 @@ -'use strict'; - -var valid_styles = ['normal', 'italic', 'oblique', 'inherit']; - -module.exports.isValid = function(v) { - return valid_styles.indexOf(v.toLowerCase()) !== -1; -}; - -module.exports.definition = { - set: function(v) { - this._setProperty('font-style', v); - }, - get: function() { - return this.getPropertyValue('font-style'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/fontVariant.js b/alarm/node_modules/cssstyle/lib/properties/fontVariant.js deleted file mode 100644 index f03b5ea..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/fontVariant.js +++ /dev/null @@ -1,18 +0,0 @@ -'use strict'; - -var valid_variants = ['normal', 'small-caps', 'inherit']; - -module.exports.isValid = function isValid(v) { - return valid_variants.indexOf(v.toLowerCase()) !== -1; -}; - -module.exports.definition = { - set: function(v) { - this._setProperty('font-variant', v); - }, - get: function() { - return this.getPropertyValue('font-variant'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/fontWeight.js b/alarm/node_modules/cssstyle/lib/properties/fontWeight.js deleted file mode 100644 index b854f6a..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/fontWeight.js +++ /dev/null @@ -1,33 +0,0 @@ -'use strict'; - -var valid_weights = [ - 'normal', - 'bold', - 'bolder', - 'lighter', - '100', - '200', - '300', - '400', - '500', - '600', - '700', - '800', - '900', - 'inherit', -]; - -module.exports.isValid = function isValid(v) { - return valid_weights.indexOf(v.toLowerCase()) !== -1; -}; - -module.exports.definition = { - set: function(v) { - this._setProperty('font-weight', v); - }, - get: function() { - return this.getPropertyValue('font-weight'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/height.js b/alarm/node_modules/cssstyle/lib/properties/height.js deleted file mode 100644 index 82543c0..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/height.js +++ /dev/null @@ -1,24 +0,0 @@ -'use strict'; - -var parseMeasurement = require('../parsers').parseMeasurement; - -function parse(v) { - if (String(v).toLowerCase() === 'auto') { - return 'auto'; - } - if (String(v).toLowerCase() === 'inherit') { - return 'inherit'; - } - return parseMeasurement(v); -} - -module.exports.definition = { - set: function(v) { - this._setProperty('height', parse(v)); - }, - get: function() { - return this.getPropertyValue('height'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/left.js b/alarm/node_modules/cssstyle/lib/properties/left.js deleted file mode 100644 index 72bb2fa..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/left.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -var parseMeasurement = require('../parsers').parseMeasurement; - -module.exports.definition = { - set: function(v) { - this._setProperty('left', parseMeasurement(v)); - }, - get: function() { - return this.getPropertyValue('left'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/lightingColor.js b/alarm/node_modules/cssstyle/lib/properties/lightingColor.js deleted file mode 100644 index 9f9643d..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/lightingColor.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -var parseColor = require('../parsers').parseColor; - -module.exports.definition = { - set: function(v) { - this._setProperty('lighting-color', parseColor(v)); - }, - get: function() { - return this.getPropertyValue('lighting-color'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/lineHeight.js b/alarm/node_modules/cssstyle/lib/properties/lineHeight.js deleted file mode 100644 index 6f7a037..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/lineHeight.js +++ /dev/null @@ -1,26 +0,0 @@ -'use strict'; - -var TYPES = require('../parsers').TYPES; -var valueType = require('../parsers').valueType; - -module.exports.isValid = function isValid(v) { - var type = valueType(v); - return ( - (type === TYPES.KEYWORD && v.toLowerCase() === 'normal') || - v.toLowerCase() === 'inherit' || - type === TYPES.NUMBER || - type === TYPES.LENGTH || - type === TYPES.PERCENT - ); -}; - -module.exports.definition = { - set: function(v) { - this._setProperty('line-height', v); - }, - get: function() { - return this.getPropertyValue('line-height'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/margin.js b/alarm/node_modules/cssstyle/lib/properties/margin.js deleted file mode 100644 index 2a8f972..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/margin.js +++ /dev/null @@ -1,68 +0,0 @@ -'use strict'; - -var parsers = require('../parsers.js'); -var TYPES = parsers.TYPES; - -var isValid = function(v) { - if (v.toLowerCase() === 'auto') { - return true; - } - var type = parsers.valueType(v); - return ( - type === TYPES.LENGTH || - type === TYPES.PERCENT || - (type === TYPES.INTEGER && (v === '0' || v === 0)) - ); -}; - -var parser = function(v) { - var V = v.toLowerCase(); - if (V === 'auto') { - return V; - } - return parsers.parseMeasurement(v); -}; - -var mySetter = parsers.implicitSetter('margin', '', isValid, parser); -var myGlobal = parsers.implicitSetter( - 'margin', - '', - function() { - return true; - }, - function(v) { - return v; - } -); - -module.exports.definition = { - set: function(v) { - if (typeof v === 'number') { - v = String(v); - } - if (typeof v !== 'string') { - return; - } - var V = v.toLowerCase(); - switch (V) { - case 'inherit': - case 'initial': - case 'unset': - case '': - myGlobal.call(this, V); - break; - - default: - mySetter.call(this, v); - break; - } - }, - get: function() { - return this.getPropertyValue('margin'); - }, - enumerable: true, - configurable: true, -}; - -module.exports.isValid = isValid; -module.exports.parser = parser; diff --git a/alarm/node_modules/cssstyle/lib/properties/marginBottom.js b/alarm/node_modules/cssstyle/lib/properties/marginBottom.js deleted file mode 100644 index 378172e..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/marginBottom.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -var margin = require('./margin.js'); -var parsers = require('../parsers.js'); - -module.exports.definition = { - set: parsers.subImplicitSetter('margin', 'bottom', margin.isValid, margin.parser), - get: function() { - return this.getPropertyValue('margin-bottom'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/marginLeft.js b/alarm/node_modules/cssstyle/lib/properties/marginLeft.js deleted file mode 100644 index 0c67317..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/marginLeft.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -var margin = require('./margin.js'); -var parsers = require('../parsers.js'); - -module.exports.definition = { - set: parsers.subImplicitSetter('margin', 'left', margin.isValid, margin.parser), - get: function() { - return this.getPropertyValue('margin-left'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/marginRight.js b/alarm/node_modules/cssstyle/lib/properties/marginRight.js deleted file mode 100644 index 6cdf26b..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/marginRight.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -var margin = require('./margin.js'); -var parsers = require('../parsers.js'); - -module.exports.definition = { - set: parsers.subImplicitSetter('margin', 'right', margin.isValid, margin.parser), - get: function() { - return this.getPropertyValue('margin-right'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/marginTop.js b/alarm/node_modules/cssstyle/lib/properties/marginTop.js deleted file mode 100644 index 6a57621..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/marginTop.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -var margin = require('./margin.js'); -var parsers = require('../parsers.js'); - -module.exports.definition = { - set: parsers.subImplicitSetter('margin', 'top', margin.isValid, margin.parser), - get: function() { - return this.getPropertyValue('margin-top'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/opacity.js b/alarm/node_modules/cssstyle/lib/properties/opacity.js deleted file mode 100644 index b26a3b6..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/opacity.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -var parseNumber = require('../parsers').parseNumber; - -module.exports.definition = { - set: function(v) { - this._setProperty('opacity', parseNumber(v)); - }, - get: function() { - return this.getPropertyValue('opacity'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/outlineColor.js b/alarm/node_modules/cssstyle/lib/properties/outlineColor.js deleted file mode 100644 index fc8093d..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/outlineColor.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -var parseColor = require('../parsers').parseColor; - -module.exports.definition = { - set: function(v) { - this._setProperty('outline-color', parseColor(v)); - }, - get: function() { - return this.getPropertyValue('outline-color'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/padding.js b/alarm/node_modules/cssstyle/lib/properties/padding.js deleted file mode 100644 index 1287b19..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/padding.js +++ /dev/null @@ -1,61 +0,0 @@ -'use strict'; - -var parsers = require('../parsers.js'); -var TYPES = parsers.TYPES; - -var isValid = function(v) { - var type = parsers.valueType(v); - return ( - type === TYPES.LENGTH || - type === TYPES.PERCENT || - (type === TYPES.INTEGER && (v === '0' || v === 0)) - ); -}; - -var parser = function(v) { - return parsers.parseMeasurement(v); -}; - -var mySetter = parsers.implicitSetter('padding', '', isValid, parser); -var myGlobal = parsers.implicitSetter( - 'padding', - '', - function() { - return true; - }, - function(v) { - return v; - } -); - -module.exports.definition = { - set: function(v) { - if (typeof v === 'number') { - v = String(v); - } - if (typeof v !== 'string') { - return; - } - var V = v.toLowerCase(); - switch (V) { - case 'inherit': - case 'initial': - case 'unset': - case '': - myGlobal.call(this, V); - break; - - default: - mySetter.call(this, v); - break; - } - }, - get: function() { - return this.getPropertyValue('padding'); - }, - enumerable: true, - configurable: true, -}; - -module.exports.isValid = isValid; -module.exports.parser = parser; diff --git a/alarm/node_modules/cssstyle/lib/properties/paddingBottom.js b/alarm/node_modules/cssstyle/lib/properties/paddingBottom.js deleted file mode 100644 index 3ce88e5..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/paddingBottom.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -var padding = require('./padding.js'); -var parsers = require('../parsers.js'); - -module.exports.definition = { - set: parsers.subImplicitSetter('padding', 'bottom', padding.isValid, padding.parser), - get: function() { - return this.getPropertyValue('padding-bottom'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/paddingLeft.js b/alarm/node_modules/cssstyle/lib/properties/paddingLeft.js deleted file mode 100644 index 0436338..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/paddingLeft.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -var padding = require('./padding.js'); -var parsers = require('../parsers.js'); - -module.exports.definition = { - set: parsers.subImplicitSetter('padding', 'left', padding.isValid, padding.parser), - get: function() { - return this.getPropertyValue('padding-left'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/paddingRight.js b/alarm/node_modules/cssstyle/lib/properties/paddingRight.js deleted file mode 100644 index ff9bd34..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/paddingRight.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -var padding = require('./padding.js'); -var parsers = require('../parsers.js'); - -module.exports.definition = { - set: parsers.subImplicitSetter('padding', 'right', padding.isValid, padding.parser), - get: function() { - return this.getPropertyValue('padding-right'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/paddingTop.js b/alarm/node_modules/cssstyle/lib/properties/paddingTop.js deleted file mode 100644 index eca8781..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/paddingTop.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -var padding = require('./padding.js'); -var parsers = require('../parsers.js'); - -module.exports.definition = { - set: parsers.subImplicitSetter('padding', 'top', padding.isValid, padding.parser), - get: function() { - return this.getPropertyValue('padding-top'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/right.js b/alarm/node_modules/cssstyle/lib/properties/right.js deleted file mode 100644 index eb4c3d4..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/right.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -var parseMeasurement = require('../parsers').parseMeasurement; - -module.exports.definition = { - set: function(v) { - this._setProperty('right', parseMeasurement(v)); - }, - get: function() { - return this.getPropertyValue('right'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/stopColor.js b/alarm/node_modules/cssstyle/lib/properties/stopColor.js deleted file mode 100644 index 912d8e2..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/stopColor.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -var parseColor = require('../parsers').parseColor; - -module.exports.definition = { - set: function(v) { - this._setProperty('stop-color', parseColor(v)); - }, - get: function() { - return this.getPropertyValue('stop-color'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/textLineThroughColor.js b/alarm/node_modules/cssstyle/lib/properties/textLineThroughColor.js deleted file mode 100644 index ae53dbb..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/textLineThroughColor.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -var parseColor = require('../parsers').parseColor; - -module.exports.definition = { - set: function(v) { - this._setProperty('text-line-through-color', parseColor(v)); - }, - get: function() { - return this.getPropertyValue('text-line-through-color'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/textOverlineColor.js b/alarm/node_modules/cssstyle/lib/properties/textOverlineColor.js deleted file mode 100644 index c6adf7c..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/textOverlineColor.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -var parseColor = require('../parsers').parseColor; - -module.exports.definition = { - set: function(v) { - this._setProperty('text-overline-color', parseColor(v)); - }, - get: function() { - return this.getPropertyValue('text-overline-color'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/textUnderlineColor.js b/alarm/node_modules/cssstyle/lib/properties/textUnderlineColor.js deleted file mode 100644 index a243a9c..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/textUnderlineColor.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -var parseColor = require('../parsers').parseColor; - -module.exports.definition = { - set: function(v) { - this._setProperty('text-underline-color', parseColor(v)); - }, - get: function() { - return this.getPropertyValue('text-underline-color'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/top.js b/alarm/node_modules/cssstyle/lib/properties/top.js deleted file mode 100644 index f71986f..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/top.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -var parseMeasurement = require('../parsers').parseMeasurement; - -module.exports.definition = { - set: function(v) { - this._setProperty('top', parseMeasurement(v)); - }, - get: function() { - return this.getPropertyValue('top'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/webkitBorderAfterColor.js b/alarm/node_modules/cssstyle/lib/properties/webkitBorderAfterColor.js deleted file mode 100644 index ed02194..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/webkitBorderAfterColor.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -var parseColor = require('../parsers').parseColor; - -module.exports.definition = { - set: function(v) { - this._setProperty('-webkit-border-after-color', parseColor(v)); - }, - get: function() { - return this.getPropertyValue('-webkit-border-after-color'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/webkitBorderBeforeColor.js b/alarm/node_modules/cssstyle/lib/properties/webkitBorderBeforeColor.js deleted file mode 100644 index a4507a1..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/webkitBorderBeforeColor.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -var parseColor = require('../parsers').parseColor; - -module.exports.definition = { - set: function(v) { - this._setProperty('-webkit-border-before-color', parseColor(v)); - }, - get: function() { - return this.getPropertyValue('-webkit-border-before-color'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/webkitBorderEndColor.js b/alarm/node_modules/cssstyle/lib/properties/webkitBorderEndColor.js deleted file mode 100644 index 499545d..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/webkitBorderEndColor.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -var parseColor = require('../parsers').parseColor; - -module.exports.definition = { - set: function(v) { - this._setProperty('-webkit-border-end-color', parseColor(v)); - }, - get: function() { - return this.getPropertyValue('-webkit-border-end-color'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/webkitBorderStartColor.js b/alarm/node_modules/cssstyle/lib/properties/webkitBorderStartColor.js deleted file mode 100644 index 8429e32..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/webkitBorderStartColor.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -var parseColor = require('../parsers').parseColor; - -module.exports.definition = { - set: function(v) { - this._setProperty('-webkit-border-start-color', parseColor(v)); - }, - get: function() { - return this.getPropertyValue('-webkit-border-start-color'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/webkitColumnRuleColor.js b/alarm/node_modules/cssstyle/lib/properties/webkitColumnRuleColor.js deleted file mode 100644 index 7130d5f..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/webkitColumnRuleColor.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -var parseColor = require('../parsers').parseColor; - -module.exports.definition = { - set: function(v) { - this._setProperty('-webkit-column-rule-color', parseColor(v)); - }, - get: function() { - return this.getPropertyValue('-webkit-column-rule-color'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/webkitMatchNearestMailBlockquoteColor.js b/alarm/node_modules/cssstyle/lib/properties/webkitMatchNearestMailBlockquoteColor.js deleted file mode 100644 index e075891..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/webkitMatchNearestMailBlockquoteColor.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -var parseColor = require('../parsers').parseColor; - -module.exports.definition = { - set: function(v) { - this._setProperty('-webkit-match-nearest-mail-blockquote-color', parseColor(v)); - }, - get: function() { - return this.getPropertyValue('-webkit-match-nearest-mail-blockquote-color'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/webkitTapHighlightColor.js b/alarm/node_modules/cssstyle/lib/properties/webkitTapHighlightColor.js deleted file mode 100644 index d019329..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/webkitTapHighlightColor.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -var parseColor = require('../parsers').parseColor; - -module.exports.definition = { - set: function(v) { - this._setProperty('-webkit-tap-highlight-color', parseColor(v)); - }, - get: function() { - return this.getPropertyValue('-webkit-tap-highlight-color'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/webkitTextEmphasisColor.js b/alarm/node_modules/cssstyle/lib/properties/webkitTextEmphasisColor.js deleted file mode 100644 index cdeab53..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/webkitTextEmphasisColor.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -var parseColor = require('../parsers').parseColor; - -module.exports.definition = { - set: function(v) { - this._setProperty('-webkit-text-emphasis-color', parseColor(v)); - }, - get: function() { - return this.getPropertyValue('-webkit-text-emphasis-color'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/webkitTextFillColor.js b/alarm/node_modules/cssstyle/lib/properties/webkitTextFillColor.js deleted file mode 100644 index ef5bd67..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/webkitTextFillColor.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -var parseColor = require('../parsers').parseColor; - -module.exports.definition = { - set: function(v) { - this._setProperty('-webkit-text-fill-color', parseColor(v)); - }, - get: function() { - return this.getPropertyValue('-webkit-text-fill-color'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/webkitTextStrokeColor.js b/alarm/node_modules/cssstyle/lib/properties/webkitTextStrokeColor.js deleted file mode 100644 index 72a2277..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/webkitTextStrokeColor.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -var parseColor = require('../parsers').parseColor; - -module.exports.definition = { - set: function(v) { - this._setProperty('-webkit-text-stroke-color', parseColor(v)); - }, - get: function() { - return this.getPropertyValue('-webkit-text-stroke-color'); - }, - enumerable: true, - configurable: true, -}; diff --git a/alarm/node_modules/cssstyle/lib/properties/width.js b/alarm/node_modules/cssstyle/lib/properties/width.js deleted file mode 100644 index a8c365d..0000000 --- a/alarm/node_modules/cssstyle/lib/properties/width.js +++ /dev/null @@ -1,24 +0,0 @@ -'use strict'; - -var parseMeasurement = require('../parsers').parseMeasurement; - -function parse(v) { - if (String(v).toLowerCase() === 'auto') { - return 'auto'; - } - if (String(v).toLowerCase() === 'inherit') { - return 'inherit'; - } - return parseMeasurement(v); -} - -module.exports.definition = { - set: function(v) { - this._setProperty('width', parse(v)); - }, - get: function() { - return this.getPropertyValue('width'); - }, - enumerable: true, - configurable: true, -}; -- cgit