content.js 664 B

123456789101112131415161718192021
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var tokenizer_1 = require("../syntax/tokenizer");
  4. var IPropertyDescriptor_1 = require("../IPropertyDescriptor");
  5. exports.content = {
  6. name: 'content',
  7. initialValue: 'none',
  8. type: IPropertyDescriptor_1.PropertyDescriptorParsingType.LIST,
  9. prefix: false,
  10. parse: function (tokens) {
  11. if (tokens.length === 0) {
  12. return [];
  13. }
  14. var first = tokens[0];
  15. if (first.type === tokenizer_1.TokenType.IDENT_TOKEN && first.value === 'none') {
  16. return [];
  17. }
  18. return tokens;
  19. }
  20. };
  21. //# sourceMappingURL=content.js.map