27 lines
846 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.wordBreak = exports.WORD_BREAK = void 0;
var WORD_BREAK;
(function (WORD_BREAK) {
WORD_BREAK["NORMAL"] = "normal";
WORD_BREAK["BREAK_ALL"] = "break-all";
WORD_BREAK["KEEP_ALL"] = "keep-all";
})(WORD_BREAK = exports.WORD_BREAK || (exports.WORD_BREAK = {}));
exports.wordBreak = {
name: 'word-break',
initialValue: 'normal',
prefix: false,
type: 2 /* IDENT_VALUE */,
parse: function (_context, wordBreak) {
switch (wordBreak) {
case 'break-all':
return WORD_BREAK.BREAK_ALL;
case 'keep-all':
return WORD_BREAK.KEEP_ALL;
case 'normal':
default:
return WORD_BREAK.NORMAL;
}
}
};
//# sourceMappingURL=word-break.js.map