Bug 17320

Summary: CSS li:last-child:after
Product: WebKit Reporter: Matthew Mohrman <mmohrman>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: hyatt, mitz
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
Attachments:
Description Flags
Sample List
none
Call setUsesSiblingRules(true) for all CSS3 selectors that require it hyatt: review+

Matthew Mohrman
Reported 2008-02-11 19:55:29 PST
The styling for li:last-child:after is ignored by WebKit (nightly build 30153) if more than one li exists within the ul. Please see the attached file for an example.
Attachments
Sample List (555 bytes, application/xhtml+xml)
2008-02-11 19:56 PST, Matthew Mohrman
no flags
Call setUsesSiblingRules(true) for all CSS3 selectors that require it (10.57 KB, patch)
2008-02-11 21:55 PST, mitz
hyatt: review+
Matthew Mohrman
Comment 1 2008-02-11 19:56:56 PST
Created attachment 19086 [details] Sample List
mitz
Comment 2 2008-02-11 21:29:56 PST
The problem goes away if you add a dummy :first-child rule: li:first-child {} So perhaps the problem is that the "affected by" bits are not set correctly.
mitz
Comment 3 2008-02-11 21:43:01 PST
mitz
Comment 4 2008-02-11 21:55:36 PST
Created attachment 19087 [details] Call setUsesSiblingRules(true) for all CSS3 selectors that require it
Dave Hyatt
Comment 5 2008-02-11 21:58:51 PST
Comment on attachment 19087 [details] Call setUsesSiblingRules(true) for all CSS3 selectors that require it r=me
mitz
Comment 6 2008-02-11 22:03:53 PST
Note You need to log in before you can comment on or make changes to this bug.