You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
400 B

  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. };