diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-01-16 14:19:52 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-01-16 14:19:52 +0000 |
commit | bd4a7a1c98444296fd869c20db212935589f6339 (patch) | |
tree | eb71d1d6ac206a39f01f0632dca9ca35f788d878 /src/parse/properties.c | |
parent | f3347525210cebcf6538c80024d0b85c8f8737e9 (diff) | |
download | libcss-bd4a7a1c98444296fd869c20db212935589f6339.tar.gz libcss-bd4a7a1c98444296fd869c20db212935589f6339.tar.bz2 |
Fix handling of single keywords in background-position -- the "first item is horizontal" rule only applies if a length/percentage has been specified.
svn path=/trunk/libcss/; revision=6084
Diffstat (limited to 'src/parse/properties.c')
-rw-r--r-- | src/parse/properties.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/parse/properties.c b/src/parse/properties.c index f28eaaa..efca5ad 100644 --- a/src/parse/properties.c +++ b/src/parse/properties.c @@ -832,11 +832,13 @@ css_error parse_background_position(css_language *c, assert(BACKGROUND_POSITION_VERT_CENTER == BACKGROUND_POSITION_HORZ_CENTER); - /* Only one (horizontal) value, so vertical is center */ + /* Only one value, so the other is center */ switch (value[0]) { case BACKGROUND_POSITION_HORZ_LEFT: case BACKGROUND_POSITION_HORZ_RIGHT: case BACKGROUND_POSITION_VERT_CENTER: + case BACKGROUND_POSITION_VERT_TOP: + case BACKGROUND_POSITION_VERT_BOTTOM: break; case BACKGROUND_POSITION_VERT_SET: value[0] = BACKGROUND_POSITION_HORZ_SET; |