diff options
author | bptato <nincsnevem662@gmail.com> | 2021-11-23 17:35:30 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2021-11-23 17:35:30 +0100 |
commit | f4805eb8c39c6c4116a7cbdd5b5121739fb640ba (patch) | |
tree | 76e0c704f7c8f9d6e6ad949bbb24770e4beb5e9d /src/types | |
parent | a413a3115f242395ef1149c263d3280e62f1608e (diff) | |
download | chawan-f4805eb8c39c6c4116a7cbdd5b5121739fb640ba.tar.gz |
Support CSS word break
Diffstat (limited to 'src/types')
-rw-r--r-- | src/types/enums.nim | 48 |
1 files changed, 26 insertions, 22 deletions
diff --git a/src/types/enums.nim b/src/types/enums.nim index d0c34b6e..2dea39a1 100644 --- a/src/types/enums.nim +++ b/src/types/enums.nim @@ -14,10 +14,6 @@ type DOCUMENT_FRAGMENT_NODE = 11, NOTATION_NODE = 12 - DisplayType* = enum - DISPLAY_INLINE, DISPLAY_BLOCK, DISPLAY_LIST_ITEM, DISPLAY_TABLE_COLUMN, - DISPLAY_INLINE_BLOCK, DISPLAY_NONE - InputType* = enum INPUT_UNKNOWN, INPUT_BUTTON, INPUT_CHECKBOX, INPUT_COLOR, INPUT_DATE, INPUT_DATETIME_LOCAL, INPUT_EMAIL, INPUT_FILE, INPUT_HIDDEN, INPUT_IMAGE, @@ -25,10 +21,6 @@ type INPUT_RESET, INPUT_SEARCH, INPUT_SUBMIT, INPUT_TEL, INPUT_TEXT, INPUT_TIME, INPUT_URL, INPUT_WEEK - WhitespaceType* = enum - WHITESPACE_NORMAL, WHITESPACE_NOWRAP, WHITESPACE_PRE, WHITESPACE_PRE_LINE, - WHITESPACE_PRE_WRAP - TagType* = enum TAG_UNKNOWN, TAG_HTML, TAG_BASE, TAG_HEAD, TAG_LINK, TAG_META, TAG_STYLE, TAG_TITLE, TAG_BODY, TAG_ADDRESS, TAG_ARTICLE, TAG_ASIDE, TAG_FOOTER, @@ -63,30 +55,42 @@ type UNIT_EM, UNIT_EX, UNIT_CH, UNIT_REM, UNIT_VW, UNIT_VH, UNIT_VMIN, UNIT_VMAX, UNIT_PERC - CSSPosition* = enum - POSITION_STATIC, POSITION_RELATIVE, POSITION_ABSOLUTE, POSITION_FIXED, - POSITION_INHERIT - CSSPropertyType* = enum PROPERTY_NONE, PROPERTY_ALL, PROPERTY_COLOR, PROPERTY_MARGIN, PROPERTY_MARGIN_TOP, PROPERTY_MARGIN_LEFT, PROPERTY_MARGIN_RIGHT, PROPERTY_MARGIN_BOTTOM, PROPERTY_FONT_STYLE, PROPERTY_DISPLAY, PROPERTY_CONTENT, PROPERTY_WHITE_SPACE, PROPERTY_FONT_WEIGHT, - PROPERTY_TEXT_DECORATION + PROPERTY_TEXT_DECORATION, PROPERTY_WORD_BREAK + + CSSValueType* = enum + VALUE_NONE, VALUE_LENGTH, VALUE_COLOR, VALUE_CONTENT, VALUE_DISPLAY, + VALUE_FONT_STYLE, VALUE_WHITE_SPACE, VALUE_INTEGER, VALUE_TEXT_DECORATION, + VALUE_WORD_BREAK + + CSSGlobalValueType* = enum + VALUE_NOGLOBAL, VALUE_INITIAL, VALUE_INHERIT, VALUE_REVERT, VALUE_UNSET + + CSSDisplay* = enum + DISPLAY_NONE, DISPLAY_INLINE, DISPLAY_BLOCK, DISPLAY_LIST_ITEM, + DISPLAY_INLINE_BLOCK, DISPLAY_TABLE, DISPLAY_TABLE_ROW_GROUP, + DISPLAY_TABLE_HEADER_GROUP, DISPLAY_TABLE_FOOTER_GROUP, + DISPLAY_TABLE_COLUMN_GROUP, DISPLAY_TABLE_ROW, DISPLAY_TABLE_COLUMN, + DISPLAY_TABLE_CELL + + CSSWhitespace* = enum + WHITESPACE_NORMAL, WHITESPACE_NOWRAP, WHITESPACE_PRE, WHITESPACE_PRE_LINE, + WHITESPACE_PRE_WRAP CSSFontStyle* = enum FONTSTYLE_NORMAL, FONTSTYLE_ITALIC, FONTSTYLE_OBLIQUE + CSSPosition* = enum + POSITION_STATIC, POSITION_RELATIVE, POSITION_ABSOLUTE, POSITION_FIXED, + POSITION_INHERIT + CSSTextDecoration* = enum TEXT_DECORATION_NONE, TEXT_DECORATION_UNDERLINE, TEXT_DECORATION_OVERLINE, TEXT_DECORATION_LINE_THROUGH, TEXT_DECORATION_BLINK - CSSGlobalValueType* = enum - VALUE_NOGLOBAL, VALUE_INITIAL, VALUE_INHERIT, VALUE_REVERT, VALUE_UNSET - - CSSValueType* = enum - VALUE_NONE, VALUE_LENGTH, VALUE_COLOR, VALUE_CONTENT, VALUE_DISPLAY, - VALUE_FONT_STYLE, VALUE_WHITE_SPACE, VALUE_INTEGER, VALUE_TEXT_DECORATION - - FormatContextType* = enum - CONTEXT_BLOCK, CONTEXT_INLINE + CSSWordBreak* = enum + WORD_BREAK_NORMAL, WORD_BREAK_BREAK_ALL, WORD_BREAK_KEEP_ALL |