Bug 110420

Summary: Adding a style with a counter-reset property does not correctly invalidate displayed counters
Product: WebKit Reporter: Mihai Parparita <mihaip>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: bfulgham, carol, darin, esprehn, webkit-bug-importer
Priority: P2 Keywords: HasReduction, InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Mihai Parparita
Reported 2013-02-20 17:46:45 PST
Test case: http://persistent.info/webkit/test-cases/counter-reset.html The test case simulates a normal <ol> via an <ul> that uses CSS counters and generated content. Press the 'Deintent "Four"' button. The "Four" list item is unindented, which gives it a list counter of 2 (correct). Then the items that follow it should restart the second-level counter, and thus have counters of "a", "b" and "c" Instead they end up with "c", "d" and "e", continuing the count from the "Two" and "Three" items. To prove that this is an invalidation issue, the entire list DOM hierarchy is cloned and appended to the document. The clone renders correctly (Gecko renders the test case correctly).
Attachments
Brent Fulgham
Comment 1 2022-07-13 14:09:29 PDT
This continues to be a problem in Safari 15.
Radar WebKit Bug Importer
Comment 2 2022-07-13 14:09:40 PDT
Note You need to log in before you can comment on or make changes to this bug.