Created attachment 54634 [details] Test HTML document When using more than one CSS counter and generating counted elements using JavaScript, counters placed in the content of a :before pseudo-element do not update themselves, but counters placed in the content of an :after pseudo-element do. I will attach a test HTML document illustrating the problem. In this test document, the number of red "xxx" strings should be counted; there are counters placed before and after the x's. The counters placed after the x's update appropriately as elements are added. The counters placed before the x's do not update as expected. In Firefox, both counters show the same number as elements are added.
This issue may be related to bug #11033.
Confirmed on nightly build (Chromium Windows).
Some refactoring went into the CSS counter code and this bug got solved (tested on Qt/Linux ToT and Chromium Canary build). It is still reproducible in Chromium stable. I will turn the test case into an regression test and have it landed.
For posterity's sake, the last Mac OS X nightly build where I can reproduce the bug is r81689. The bug is fixed in r81756.
Created attachment 91544 [details] Patch
Comment on attachment 91544 [details] Patch Thanks for confirming Nate!
Comment on attachment 91544 [details] Patch Clearing flags on attachment: 91544 Committed r85288: <http://trac.webkit.org/changeset/85288>
All reviewed patches have been landed. Closing bug.