[Webkit-unassigned] [Bug 69083] Several CSS lexer rules don't match CSS 2.1 spec

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 21 04:27:54 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=69083





--- Comment #19 from Zoltan Herczeg <zherczeg at webkit.org>  2011-11-21 04:27:54 PST ---
I found one more thing:

http://www.w3.org/TR/selectors/#structural-pseudos

says:

The following selectors are therefore equivalent:
bar:nth-child(1n+0)   /* represents all bar elements, specificity (0,1,1) */
bar:nth-child(n+0)    /* same */
bar:nth-child(n)      /* same */
bar                   /* same but lower specificity (0,0,1) */

However, in our tokenizer.flex:
{ident}                 {yyTok = IDENT; return yyTok;}
<nthchild>{nth}         {yyTok = NTH; return yyTok;}

Thus, identifier got higher priority than nth in <nthchild> mode, so 'n' is reported as IDENT not as NTH.

I think we should swap these rules. Do you agree?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list