diff options
Diffstat (limited to 'src/select/propget.h')
-rw-r--r-- | src/select/propget.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/select/propget.h b/src/select/propget.h index 23c7cdf..39f6300 100644 --- a/src/select/propget.h +++ b/src/select/propget.h @@ -1721,4 +1721,21 @@ static inline uint8_t get_list_style_position( #undef LIST_STYLE_POSITION_SHIFT #undef LIST_STYLE_POSITION_INDEX +#define LIBCSS_ALIGN_INDEX 33 +#define LIBCSS_ALIGN_SHIFT 1 +#define LIBCSS_ALIGN_MASK 0xe +static inline uint8_t get_libcss_align( + const css_computed_style *style) +{ + uint8_t bits = style->bits[LIBCSS_ALIGN_INDEX]; + bits &= LIBCSS_ALIGN_MASK; + bits >>= LIBCSS_ALIGN_SHIFT; + + /* 3bits: type */ + return bits; +} +#undef LIBCSS_ALIGN_MASK +#undef LIBCSS_ALIGN_SHIFT +#undef LIBCSS_ALIGN_INDEX + #endif |