letter-spacing.js 643 B

12345678910111213141516171819202122
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.letterSpacing = void 0;
  4. exports.letterSpacing = {
  5. name: 'letter-spacing',
  6. initialValue: '0',
  7. prefix: false,
  8. type: 0 /* VALUE */,
  9. parse: function (_context, token) {
  10. if (token.type === 20 /* IDENT_TOKEN */ && token.value === 'normal') {
  11. return 0;
  12. }
  13. if (token.type === 17 /* NUMBER_TOKEN */) {
  14. return token.number;
  15. }
  16. if (token.type === 15 /* DIMENSION_TOKEN */) {
  17. return token.number;
  18. }
  19. return 0;
  20. }
  21. };
  22. //# sourceMappingURL=letter-spacing.js.map