diff options
Diffstat (limited to 'include/libcss/select.h')
-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); |