summaryrefslogtreecommitdiff
path: root/source/html/css-parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/html/css-parse.c')
-rw-r--r--source/html/css-parse.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/source/html/css-parse.c b/source/html/css-parse.c
index adcd524b..f98287c0 100644
--- a/source/html/css-parse.c
+++ b/source/html/css-parse.c
@@ -377,6 +377,14 @@ restart:
css_lex_expect(buf, '>');
continue; /* ignore CDC */
}
+ if (css_lex_accept(buf, '.'))
+ {
+ css_push_char(buf, '-');
+ css_push_char(buf, '.');
+ if (buf->c >= '0' && buf->c <= '9')
+ return css_lex_number(buf);
+ return css_lex_keyword(buf);
+ }
if (buf->c >= '0' && buf->c <= '9')
{
css_push_char(buf, '-');
@@ -385,8 +393,6 @@ restart:
if (isnmstart(buf->c))
{
css_push_char(buf, '-');
- css_push_char(buf, buf->c);
- css_lex_next(buf);
return css_lex_keyword(buf);
}
return '-';