diff options
-rw-r--r-- | src/cssparser.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cssparser.cc b/src/cssparser.cc index f11e0a86..066a282d 100644 --- a/src/cssparser.cc +++ b/src/cssparser.cc @@ -1181,8 +1181,10 @@ CssPropertyList *a_Css_parse_declaration(const char *buf, int buflen) parser.space_separated = false; Css_next_token(&parser); - while (parser.ttype != CSS_TK_END) + do Css_parse_declaration(&parser, props, NULL); + while (!(parser.ttype == CSS_TK_END || + (parser.ttype == CSS_TK_CHAR && parser.tval[0] == '}'))); if (props->size () == 0) { delete props; |