From 71fdae79c38fee74c060cb41eee9b6e1257e1fb6 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 27 Nov 2014 15:55:51 +0100 Subject: html: Allow +number in CSS syntax. --- source/html/css-parse.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source') 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') -- cgit v1.2.3