text-align.js 598 B

12345678910111213141516171819202122
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.textAlign = void 0;
  4. exports.textAlign = {
  5. name: 'text-align',
  6. initialValue: 'left',
  7. prefix: false,
  8. type: 2 /* IDENT_VALUE */,
  9. parse: function (_context, textAlign) {
  10. switch (textAlign) {
  11. case 'right':
  12. return 2 /* RIGHT */;
  13. case 'center':
  14. case 'justify':
  15. return 1 /* CENTER */;
  16. case 'left':
  17. default:
  18. return 0 /* LEFT */;
  19. }
  20. }
  21. };
  22. //# sourceMappingURL=text-align.js.map