aboutsummaryrefslogtreecommitdiff
path: root/src/cssparser.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2013-09-25 11:57:00 +0200
committerSebastian Geerken <devnull@localhost>2013-09-25 11:57:00 +0200
commit9bdbab27811d631db9c321380dea0842ec0af392 (patch)
tree52b0e39dbe51c0ebfd14209479959f2d99249cd6 /src/cssparser.cc
parent37507ce8b1188c040afca07390504cd162f5111f (diff)
CSS attribute 'background-attachment' (not implemented in dw::core::style).
Diffstat (limited to 'src/cssparser.cc')
-rw-r--r--src/cssparser.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cssparser.cc b/src/cssparser.cc
index 19eb95a5..a67e98d3 100644
--- a/src/cssparser.cc
+++ b/src/cssparser.cc
@@ -47,6 +47,10 @@ typedef struct {
const char *const *enum_symbols;
} CssPropertyInfo;
+static const char *const Css_background_attachment_enum_vals[] = {
+ "scroll", "fixed", NULL
+};
+
static const char *const Css_background_repeat_enum_vals[] = {
"repeat", "repeat-x", "repeat-y", "no-repeat", NULL
};
@@ -143,7 +147,8 @@ static const char *const Css_word_spacing_enum_vals[] = {
};
const CssPropertyInfo Css_property_info[CSS_PROPERTY_LAST] = {
- {"background-attachment", {CSS_TYPE_UNUSED}, NULL},
+ {"background-attachment", {CSS_TYPE_ENUM, CSS_TYPE_UNUSED},
+ Css_background_attachment_enum_vals},
{"background-color", {CSS_TYPE_COLOR, CSS_TYPE_UNUSED}, NULL},
{"background-image", {CSS_TYPE_URI, CSS_TYPE_UNUSED}, NULL},
{"background-position", {CSS_TYPE_UNUSED}, NULL},