font-family.js 673 B

1234567891011121314151617
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var IPropertyDescriptor_1 = require("../IPropertyDescriptor");
  4. var tokenizer_1 = require("../syntax/tokenizer");
  5. exports.fontFamily = {
  6. name: "font-family",
  7. initialValue: '',
  8. prefix: false,
  9. type: IPropertyDescriptor_1.PropertyDescriptorParsingType.LIST,
  10. parse: function (tokens) {
  11. return tokens.filter(isStringToken).map(function (token) { return token.value; });
  12. }
  13. };
  14. var isStringToken = function (token) {
  15. return token.type === tokenizer_1.TokenType.STRING_TOKEN || token.type === tokenizer_1.TokenType.IDENT_TOKEN;
  16. };
  17. //# sourceMappingURL=font-family.js.map