From 7fabedce909fe18dd9aa853943c0e4cec7ffb866 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 14 Apr 2015 19:40:44 +0200 Subject: epub: Ignore CSS3 ::before pseudo-element syntax. --- source/html/css-parse.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source') diff --git a/source/html/css-parse.c b/source/html/css-parse.c index ff364fc7..93916344 100644 --- a/source/html/css-parse.c +++ b/source/html/css-parse.c @@ -655,6 +655,7 @@ static fz_css_condition *parse_condition(struct lexbuf *buf) if (accept(buf, ':')) { + accept(buf, ':'); /* swallow css3 :: syntax and pretend it's a normal pseudo-class */ if (buf->lookahead != CSS_KEYWORD) fz_css_error(buf, "expected keyword after ':'"); c = fz_new_css_condition(buf->ctx, ':', "pseudo", buf->string); -- cgit v1.2.3