summaryrefslogtreecommitdiff
path: root/source/html/css-parse.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2014-11-27 15:55:51 +0100
committerTor Andersson <tor.andersson@artifex.com>2014-12-03 12:25:52 +0100
commit71fdae79c38fee74c060cb41eee9b6e1257e1fb6 (patch)
tree7d5895f8ccec12962e8241704c702706e1606c7c /source/html/css-parse.c
parent602146c0c833d7cb41f9d369047e36a2f412f40a (diff)
downloadmupdf-71fdae79c38fee74c060cb41eee9b6e1257e1fb6.tar.xz
html: Allow +number in CSS syntax.
Diffstat (limited to 'source/html/css-parse.c')
-rw-r--r--source/html/css-parse.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/html/css-parse.c b/source/html/css-parse.c
index e0bdc616..db17e431 100644
--- a/source/html/css-parse.c
+++ b/source/html/css-parse.c
@@ -381,6 +381,13 @@ restart:
return '-';
}
+ if (css_lex_accept(buf, '+'))
+ {
+ if (buf->c >= '0' && buf->c <= '9')
+ return css_lex_number(buf);
+ return '+';
+ }
+
if (css_lex_accept(buf, '.'))
{
if (buf->c >= '0' && buf->c <= '9')