aboutsummaryrefslogtreecommitdiff
path: root/src/cssparser.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-02-06 21:44:50 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-02-06 21:44:50 +0100
commit481f624e2592fc0967e94b84f1ce1d0f9e6ac9ce (patch)
tree3857258e4d3db797b829c32c31c143363c99f54a /src/cssparser.cc
parent17c9dc7f581ca55e931ce2987cb34bc505bf75d3 (diff)
support font-size enum values
Diffstat (limited to 'src/cssparser.cc')
-rw-r--r--src/cssparser.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cssparser.cc b/src/cssparser.cc
index 73182d09..81e289a2 100644
--- a/src/cssparser.cc
+++ b/src/cssparser.cc
@@ -56,6 +56,10 @@ static const char *const Css_display_enum_vals[DISPLAY_LAST + 1] = {
"table-cell", NULL
};
+static const char *const Css_font_size_enum_vals[] = {
+ "large", "larger", "medium", "small", "smaller", "xx-large", "xx-small", "x-large", "x-small", NULL
+};
+
static const char *const Css_font_style_enum_vals[] = {
"normal", "italic", "oblique", NULL
};
@@ -122,7 +126,7 @@ const CssPropertyInfo Css_property_info[CSS_PROPERTY_LAST] = {
{"empty-cells", {CSS_TYPE_UNUSED}, NULL},
{"float", {CSS_TYPE_UNUSED}, NULL},
{"font-family", {CSS_TYPE_SYMBOL, CSS_TYPE_UNUSED}, NULL},
- {"font-size", {CSS_TYPE_LENGTH_PERCENTAGE, CSS_TYPE_UNUSED}, NULL},
+ {"font-size", {CSS_TYPE_ENUM, CSS_TYPE_LENGTH_PERCENTAGE, CSS_TYPE_UNUSED}, Css_font_size_enum_vals},
{"font-size-adjust", {CSS_TYPE_UNUSED}, NULL},
{"font-stretch", {CSS_TYPE_UNUSED}, NULL},
{"font-style", {CSS_TYPE_ENUM, CSS_TYPE_UNUSED}, Css_font_style_enum_vals},