overflow-wrap.js 818 B

123456789101112131415161718192021222324
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var IPropertyDescriptor_1 = require("../IPropertyDescriptor");
  4. var OVERFLOW_WRAP;
  5. (function (OVERFLOW_WRAP) {
  6. OVERFLOW_WRAP["NORMAL"] = "normal";
  7. OVERFLOW_WRAP["BREAK_WORD"] = "break-word";
  8. })(OVERFLOW_WRAP = exports.OVERFLOW_WRAP || (exports.OVERFLOW_WRAP = {}));
  9. exports.overflowWrap = {
  10. name: 'overflow-wrap',
  11. initialValue: 'normal',
  12. prefix: false,
  13. type: IPropertyDescriptor_1.PropertyDescriptorParsingType.IDENT_VALUE,
  14. parse: function (overflow) {
  15. switch (overflow) {
  16. case 'break-word':
  17. return OVERFLOW_WRAP.BREAK_WORD;
  18. case 'normal':
  19. default:
  20. return OVERFLOW_WRAP.NORMAL;
  21. }
  22. }
  23. };
  24. //# sourceMappingURL=overflow-wrap.js.map