fontVariant.js 400 B

123456789101112131415161718
  1. 'use strict';
  2. var valid_variants = ['normal', 'small-caps', 'inherit'];
  3. module.exports.isValid = function isValid(v) {
  4. return valid_variants.indexOf(v.toLowerCase()) !== -1;
  5. };
  6. module.exports.definition = {
  7. set: function(v) {
  8. this._setProperty('font-variant', v);
  9. },
  10. get: function() {
  11. return this.getPropertyValue('font-variant');
  12. },
  13. enumerable: true,
  14. configurable: true,
  15. };