iconv: Bail out of the loop when an illegal sequence of bytes occurs.
[elinks/elinks-j605.git] / src / document / css / property.c
blob3914fd1cdc206ccfad7cee4c1bea57920bd5b3ed
1 /** CSS property info
2 * @file */
4 #ifdef HAVE_CONFIG_H
5 #include "config.h"
6 #endif
8 #include <stdlib.h>
10 #include "elinks.h"
12 #include "document/css/property.h"
13 #include "document/css/value.h"
16 /** @todo TODO: Use fastfind when we get a lot of properties.
17 * XXX: But only _WHEN_ we get _A LOT_ of properties, zas! ;-) --pasky */
18 struct css_property_info css_property_info[CSS_PT_LAST] = {
19 { "background", CSS_PT_BACKGROUND, CSS_VT_COLOR, css_parse_background_value },
20 { "background-color", CSS_PT_BACKGROUND_COLOR, CSS_VT_COLOR, css_parse_color_value },
21 { "color", CSS_PT_COLOR, CSS_VT_COLOR, css_parse_color_value },
22 { "display", CSS_PT_DISPLAY, CSS_VT_DISPLAY, css_parse_display_value },
23 { "font-style", CSS_PT_FONT_STYLE, CSS_VT_FONT_ATTRIBUTE, css_parse_font_style_value },
24 { "font-weight", CSS_PT_FONT_WEIGHT, CSS_VT_FONT_ATTRIBUTE, css_parse_font_weight_value },
25 { "list-style", CSS_PT_LIST_STYLE, CSS_VT_LIST_STYLE, css_parse_list_style_value },
26 { "text-align", CSS_PT_TEXT_ALIGN, CSS_VT_TEXT_ALIGN, css_parse_text_align_value },
27 { "text-decoration", CSS_PT_TEXT_DECORATION, CSS_VT_FONT_ATTRIBUTE, css_parse_text_decoration_value },
28 { "white-space", CSS_PT_WHITE_SPACE, CSS_VT_FONT_ATTRIBUTE, css_parse_white_space_value },
30 { NULL, CSS_PT_NONE, CSS_VT_NONE },