From: Myun2 Date: Thu, 30 Dec 2010 07:21:27 +0000 (+0900) Subject: web/css/attr_text.hpp: text_decoration対応 X-Git-Tag: 20111130_shapeup_prev^2~101 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=91f56dfe0cb3e3887158b860992aa927a812e64b;p=roast%2Froast.git web/css/attr_text.hpp: text_decoration対応 --- diff --git a/roast/include/roast/web/css/attr_text.hpp b/roast/include/roast/web/css/attr_text.hpp index 61cda87f..6ee06e09 100644 --- a/roast/include/roast/web/css/attr_text.hpp +++ b/roast/include/roast/web/css/attr_text.hpp @@ -404,10 +404,21 @@ namespace roast }; typedef text_align_<_true_analyze> text_align; + // text_decoration + template + struct text_decoration_ : _values<_attrname_str::text_decoration, _Value,_Value2,_Value3,_Value4> + { + ROAST_CSS_STR_DEF(none) + ROAST_CSS_STR_DEF(underline) + ROAST_CSS_STR_DEF(overline) + ROAST_LEXICAL_FIXSTR(line_through, "line-through") + ROAST_CSS_STR_DEF(blink) + ROAST_CSS_STR_DEF(inherit) + }; + typedef text_decoration_<_true_analyze> text_decoration; + /* - ROAST_LEXICAL_FIXSTR(text_decoration, "text-decoration") - none | [ underline || overline || line-through || blink ] | inherit - ROAST_LEXICAL_FIXSTR(letter_spacing, "letter-spacing") Value: normal | | inherit diff --git a/roast/test/lexical_test/css_test.cpp b/roast/test/lexical_test/css_test.cpp index 7c72ffa6..d2a051e0 100644 --- a/roast/test/lexical_test/css_test.cpp +++ b/roast/test/lexical_test/css_test.cpp @@ -37,7 +37,8 @@ int main() //color_ > a; //border_color_ a; //line_height_ a; - vertical_align_ a; + //vertical_align_ a; + text_decoration_ a; //padding_px_<10,20,30,8> a; //color_<0xFF88DA> //top_ > a;