From 758b01f92c0d8e1cdd966a5127e267efd0fe6391 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 22 Aug 2009 09:33:04 +0000 Subject: It turns out that using magic values for text-align is simpler than having an entirely new property for html alignment. svn path=/trunk/libcss/; revision=9387 --- include/libcss/properties.h | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) (limited to 'include/libcss/properties.h') diff --git a/include/libcss/properties.h b/include/libcss/properties.h index 38b264e..7ec277a 100644 --- a/include/libcss/properties.h +++ b/include/libcss/properties.h @@ -109,9 +109,7 @@ enum css_properties_e { CSS_PROP_WORD_SPACING = 0x061, CSS_PROP_Z_INDEX = 0x062, - CSS_PROP_LIBCSS_ALIGN = 0x063, - - CSS_N_PROPERTIES = CSS_PROP_LIBCSS_ALIGN + 1 + CSS_N_PROPERTIES = CSS_PROP_Z_INDEX + 1 }; @@ -512,7 +510,10 @@ enum css_text_align_e { CSS_TEXT_ALIGN_RIGHT = 0x2, CSS_TEXT_ALIGN_CENTER = 0x3, CSS_TEXT_ALIGN_JUSTIFY = 0x4, - CSS_TEXT_ALIGN_DEFAULT = 0x5 + CSS_TEXT_ALIGN_DEFAULT = 0x5, + CSS_TEXT_ALIGN_LIBCSS_LEFT = 0x6, + CSS_TEXT_ALIGN_LIBCSS_CENTER = 0x7, + CSS_TEXT_ALIGN_LIBCSS_RIGHT = 0x8 }; enum css_text_decoration_e { @@ -597,13 +598,4 @@ enum css_z_index_e { CSS_Z_INDEX_AUTO = 0x2 }; -enum css_libcss_align_e { - CSS_LIBCSS_ALIGN_INHERIT = 0x0, - CSS_LIBCSS_ALIGN_LEFT = 0x1, - CSS_LIBCSS_ALIGN_RIGHT = 0x2, - CSS_LIBCSS_ALIGN_CENTER = 0x3, - CSS_LIBCSS_ALIGN_JUSTIFY = 0x4, - CSS_LIBCSS_ALIGN_DEFAULT = 0x5 -}; - #endif -- cgit v1.2.3