overflow.js 880 B

12345678910111213141516171819202122232425262728
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.overflow = void 0;
  4. var parser_1 = require("../syntax/parser");
  5. exports.overflow = {
  6. name: 'overflow',
  7. initialValue: 'visible',
  8. prefix: false,
  9. type: 1 /* LIST */,
  10. parse: function (_context, tokens) {
  11. return tokens.filter(parser_1.isIdentToken).map(function (overflow) {
  12. switch (overflow.value) {
  13. case 'hidden':
  14. return 1 /* HIDDEN */;
  15. case 'scroll':
  16. return 2 /* SCROLL */;
  17. case 'clip':
  18. return 3 /* CLIP */;
  19. case 'auto':
  20. return 4 /* AUTO */;
  21. case 'visible':
  22. default:
  23. return 0 /* VISIBLE */;
  24. }
  25. });
  26. }
  27. };
  28. //# sourceMappingURL=overflow.js.map