Skip to content

Commit 1b4b981

Browse files
committed
we need 5 for lookahead, as the extra space derail the logic otherwise (the colon is not checked and it fails in the wrong rule. This fixes w3c#265
1 parent a87e32e commit 1b4b981

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

org/w3c/css/parser/analyzer/CssParser.jj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ void mediainparens(AtRuleMedia mediaRule, boolean defaultMedia, String comb) :
11031103
Token n;
11041104
}
11051105
{
1106-
( LOOKAHEAD(4) ( <RPARAN> ( <S> )* mediacondition(mediaRule, defaultMedia, comb) <LPARAN> ( <S> )* ) | LOOKAHEAD(4) mediarange(mediaRule, defaultMedia, comb) | mediaexpression(mediaRule, defaultMedia, comb) )
1106+
( LOOKAHEAD(4) ( <RPARAN> ( <S> )* mediacondition(mediaRule, defaultMedia, comb) <LPARAN> ( <S> )* ) | LOOKAHEAD(5) mediarange(mediaRule, defaultMedia, comb) | mediaexpression(mediaRule, defaultMedia, comb) )
11071107
}
11081108

11091109
void mediaexpression(AtRuleMedia mediaRule, boolean defaultMedia, String comb) :

0 commit comments

Comments
 (0)