diff options
author | Johannes Hofmann <devnull@localhost> | 2013-09-30 20:34:03 +0200 |
---|---|---|
committer | Johannes Hofmann <devnull@localhost> | 2013-09-30 20:34:03 +0200 |
commit | b2fd371c4311d5d6abe7c724c8025a37c534942b (patch) | |
tree | 03c650c1e3b34e32012f5a7d208dff5a526240bb /src/css.hh | |
parent | 50c1c525fcb7ffa6384e9f5d6afae96370556ca1 (diff) |
New type for <background-position> (incomplete).
Diffstat (limited to 'src/css.hh')
-rw-r--r-- | src/css.hh | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -46,6 +46,7 @@ typedef enum { CSS_TYPE_MULTI_ENUM). Used for 'font-family'. */ CSS_TYPE_URI, /* <uri> */ + CSS_TYPE_BACKGROUND_POSITION, CSS_TYPE_UNUSED /* Not yet used. Will itself get unused some day. */ } CssValueType; @@ -143,6 +144,7 @@ typedef enum { CSS_PROPERTY_BACKGROUND_ATTACHMENT, CSS_PROPERTY_BACKGROUND_COLOR, CSS_PROPERTY_BACKGROUND_IMAGE, + CSS_PROPERTY_BACKGROUND_POSITION, // 'background-position' is handled as a shorthand. CSS_PROPERTY_BACKGROUND_REPEAT, CSS_PROPERTY_BORDER_BOTTOM_COLOR, @@ -234,9 +236,15 @@ typedef enum { CSS_PROPERTY_LAST } CssPropertyName; +typedef struct { + int32_t posX; + int32_t posY; +} CssBackgroundPosition; + typedef union { int32_t intVal; char *strVal; + CssBackgroundPosition *posVal; } CssPropertyValue; typedef enum { |