1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-24 00:56:14 +00:00

Add support for the CSS list-style-type property

Use the same functions as for the list-style property since only the "type" part
of the list-style property is supported at this stage.

Signed-off-by: Fabienne Ducroquet <fabiduc@gmail.com>
This commit is contained in:
Fabienne Ducroquet 2013-04-02 20:51:56 +02:00 committed by Witold Filipczyk
parent ad7ff0386d
commit b2bc6f5049
4 changed files with 4 additions and 0 deletions

View File

@ -149,6 +149,7 @@ static const css_applier_T css_appliers[CSS_PT_LAST] = {
/* CSS_PT_FONT_STYLE */ css_apply_font_attribute,
/* CSS_PT_FONT_WEIGHT */ css_apply_font_attribute,
/* CSS_PT_LIST_STYLE */ css_apply_list_style,
/* CSS_PT_LIST_STYLE_TYPE */ css_apply_list_style,
/* CSS_PT_TEXT_ALIGN */ css_apply_text_align,
/* CSS_PT_TEXT_DECORATION */ css_apply_font_attribute,
/* CSS_PT_WHITE_SPACE */ css_apply_font_attribute,

View File

@ -23,6 +23,7 @@ struct css_property_info css_property_info[CSS_PT_LAST] = {
{ "font-style", CSS_PT_FONT_STYLE, CSS_VT_FONT_ATTRIBUTE, css_parse_font_style_value },
{ "font-weight", CSS_PT_FONT_WEIGHT, CSS_VT_FONT_ATTRIBUTE, css_parse_font_weight_value },
{ "list-style", CSS_PT_LIST_STYLE, CSS_VT_LIST_STYLE, css_parse_list_style_value },
{ "list-style-type", CSS_PT_LIST_STYLE_TYPE, CSS_VT_LIST_STYLE, css_parse_list_style_value },
{ "text-align", CSS_PT_TEXT_ALIGN, CSS_VT_TEXT_ALIGN, css_parse_text_align_value },
{ "text-decoration", CSS_PT_TEXT_DECORATION, CSS_VT_FONT_ATTRIBUTE, css_parse_text_decoration_value },
{ "white-space", CSS_PT_WHITE_SPACE, CSS_VT_FONT_ATTRIBUTE, css_parse_white_space_value },

View File

@ -25,6 +25,7 @@ struct css_property {
CSS_PT_FONT_STYLE,
CSS_PT_FONT_WEIGHT,
CSS_PT_LIST_STYLE,
CSS_PT_LIST_STYLE_TYPE,
CSS_PT_TEXT_ALIGN,
CSS_PT_TEXT_DECORATION,
CSS_PT_WHITE_SPACE,

View File

@ -63,6 +63,7 @@ init_template_by_style(struct screen_char *template, struct document_options *op
case CSS_PT_DISPLAY:
case CSS_PT_NONE:
case CSS_PT_LIST_STYLE:
case CSS_PT_LIST_STYLE_TYPE:
case CSS_PT_TEXT_ALIGN:
case CSS_PT_WHITE_SPACE:
case CSS_PT_LAST: