Skip to content

Commit f571ef0

Browse files
committed
Fixed parsing CSS at-rules
Closes #74
1 parent 1d4c939 commit f571ef0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stylesheet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void litehtml::css::parse_stylesheet(const tchar_t* str, const tchar_t* baseurl,
2323
while(pos != tstring::npos && text[pos] == _t('@'))
2424
{
2525
tstring::size_type sPos = pos;
26-
pos = text.find_first_of(_t("{"), pos);
26+
pos = text.find_first_of(_t("{;"), pos);
2727
if(pos != tstring::npos && text[pos] == _t('{'))
2828
{
2929
pos = find_close_bracket(text, pos, _t('{'), _t('}'));

0 commit comments

Comments
 (0)