diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-02-10 01:01:06 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-02-10 01:01:06 +0000 |
commit | 5bca96ed4ae12439979fa7200f2123c972731e43 (patch) | |
tree | 06d01243449a975f79fc6160aa26f73df51af5f0 /include/libcss | |
parent | 43b8d99a4caba7fe0557117c4cd9ae4554b8a79e (diff) | |
download | libcss-5bca96ed4ae12439979fa7200f2123c972731e43.tar.gz libcss-5bca96ed4ae12439979fa7200f2123c972731e43.tar.bz2 |
Enumerate pseudo classes and elements
svn path=/trunk/libcss/; revision=6407
Diffstat (limited to 'include/libcss')
-rw-r--r-- | include/libcss/select.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/libcss/select.h b/include/libcss/select.h index 1226480..fa9a7c2 100644 --- a/include/libcss/select.h +++ b/include/libcss/select.h @@ -12,6 +12,26 @@ #include <libcss/functypes.h> #include <libcss/types.h> +enum css_pseudo_class { + CSS_PSEUDO_CLASS_FIRST_CHILD = (1<<0), + CSS_PSEUDO_CLASS_LINK = (1<<1), + CSS_PSEUDO_CLASS_VISITED = (1<<2), + CSS_PSEUDO_CLASS_HOVER = (1<<3), + CSS_PSEUDO_CLASS_ACTIVE = (1<<4), + CSS_PSEUDO_CLASS_FOCUS = (1<<5), + /** \todo CSS_PSEUDO_CLASS_LANG = (1<<6), */ + CSS_PSEUDO_CLASS_LEFT = (1<<7), + CSS_PSEUDO_CLASS_RIGHT = (1<<8), + CSS_PSEUDO_CLASS_FIRST = (1<<9) +}; + +enum css_pseudo_element { + CSS_PSEUDO_ELEMENT_FIRST_LINE = (1<<0), + CSS_PSEUDO_ELEMENT_FIRST_LETTER = (1<<1), + CSS_PSEUDO_ELEMENT_BEFORE = (1<<2), + CSS_PSEUDO_ELEMENT_AFTER = (1<<3) +}; + typedef struct css_select_handler { css_error (*node_name)(void *pw, void *node, const uint8_t **name, size_t *len); |