diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2014-11-27 15:55:51 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2014-12-03 12:25:52 +0100 |
commit | 71fdae79c38fee74c060cb41eee9b6e1257e1fb6 (patch) | |
tree | 7d5895f8ccec12962e8241704c702706e1606c7c | |
parent | 602146c0c833d7cb41f9d369047e36a2f412f40a (diff) | |
download | mupdf-71fdae79c38fee74c060cb41eee9b6e1257e1fb6.tar.xz |
html: Allow +number in CSS syntax.
-rw-r--r-- | source/html/css-parse.c | 7 |
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') |