[Webkit-unassigned] [Bug 32856] querySelectorAll with "nth-child(3n+1), nth-child(3n)"

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 31 09:34:46 PDT 2010


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


Julien Chaffraix <jchaffraix at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
           Keywords|                            |HasReduction
                 CC|                            |jchaffraix at webkit.org
     Ever Confirmed|0                           |1




--- Comment #2 from Julien Chaffraix <jchaffraix at webkit.org>  2010-03-31 09:34:46 PST ---
Confirmed on ToT.

I tracked down this issue to
CSSStyleSelector::SelectorChecker::checkOneSelector.

In the CSSSelector::PseudoNthChild case (line 2240), we cache the child count
in the RenderStyle associated with the current Element. When we apply the 2nd
selector (ul li:nth-child(3n)), we actually increase the count a second time.
This is enough to make us match every elements.

-- 
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