aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2009-12-20 21:09:57 +0000
committercorvid <corvid@lavabit.com>2009-12-20 21:09:57 +0000
commit80e2925a353d122cff1a42d86348228d1d8b182b (patch)
treefea4e71a01da71c1bc3a2f416097648d1a1b184b
parent6910376475469513dfcd05c39a8a36d672abd959 (diff)
recognize text-{top,bottom} as vertical-align values
-rw-r--r--dw/style.hh4
-rw-r--r--src/cssparser.cc3
2 files changed, 5 insertions, 2 deletions
diff --git a/dw/style.hh b/dw/style.hh
index 55d6fc9f..231f879a 100644
--- a/dw/style.hh
+++ b/dw/style.hh
@@ -237,7 +237,9 @@ enum VAlignType {
VALIGN_MIDDLE,
VALIGN_BASELINE,
VALIGN_SUB,
- VALIGN_SUPER
+ VALIGN_SUPER,
+ VALIGN_TEXT_TOP,
+ VALIGN_TEXT_BOTTOM,
};
/**
diff --git a/src/cssparser.cc b/src/cssparser.cc
index 387066d6..85ae0610 100644
--- a/src/cssparser.cc
+++ b/src/cssparser.cc
@@ -106,7 +106,8 @@ static const char *const Css_text_decoration_enum_vals[] = {
};
static const char *const Css_vertical_align_vals[] = {
- "top", "bottom", "middle", "baseline", "sub", "super", NULL
+ "top", "bottom", "middle", "baseline", "sub", "super", "text-top",
+ "text-bottom", NULL
};
static const char *const Css_white_space_vals[] = {