diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2010-08-20 23:49:39 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2010-08-20 23:49:39 +0200 |
commit | 935fd13991fc9303e998e2678945beea6e36f8af (patch) | |
tree | 280bb5e81d1f8b23582b819cf9119f195514d34b /src/cssparser.cc | |
parent | 18a9c67a605ed5ee3ed94d293659c13489351efb (diff) |
parse the CSS property float
Diffstat (limited to 'src/cssparser.cc')
-rw-r--r-- | src/cssparser.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cssparser.cc b/src/cssparser.cc index 00ba7428..9d141293 100644 --- a/src/cssparser.cc +++ b/src/cssparser.cc @@ -68,6 +68,10 @@ static const char *const Css_display_enum_vals[] = { "table-cell", NULL }; +static const char *const Css_float_enum_vals[] = { + "none", "left", "right", NULL +}; + static const char *const Css_font_size_enum_vals[] = { "large", "larger", "medium", "small", "smaller", "xx-large", "xx-small", "x-large", "x-small", NULL @@ -162,7 +166,7 @@ const CssPropertyInfo Css_property_info[CSS_PROPERTY_LAST] = { {"direction", {CSS_TYPE_UNUSED}, NULL}, {"display", {CSS_TYPE_ENUM, CSS_TYPE_UNUSED}, Css_display_enum_vals}, {"empty-cells", {CSS_TYPE_UNUSED}, NULL}, - {"float", {CSS_TYPE_UNUSED}, NULL}, + {"float", {CSS_TYPE_ENUM, CSS_TYPE_UNUSED}, Css_float_enum_vals}, {"font-family", {CSS_TYPE_SYMBOL, CSS_TYPE_UNUSED}, NULL}, {"font-size", {CSS_TYPE_ENUM, CSS_TYPE_LENGTH_PERCENTAGE, CSS_TYPE_UNUSED}, Css_font_size_enum_vals}, |