diff options
Diffstat (limited to 'alarm/node_modules/cssstyle/lib/properties/fontVariant.js')
-rw-r--r-- | alarm/node_modules/cssstyle/lib/properties/fontVariant.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/alarm/node_modules/cssstyle/lib/properties/fontVariant.js b/alarm/node_modules/cssstyle/lib/properties/fontVariant.js new file mode 100644 index 0000000..f03b5ea --- /dev/null +++ b/alarm/node_modules/cssstyle/lib/properties/fontVariant.js @@ -0,0 +1,18 @@ +'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, +}; |