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+

Description Matthew Mohrman 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.
Comment 1 Matthew Mohrman 2008-02-11 19:56:56 PST
Created attachment 19086 [details]
Sample List
Comment 2 mitz 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.
Comment 3 mitz 2008-02-11 21:43:01 PST
<rdar://problem/5736953>
Comment 4 mitz 2008-02-11 21:55:36 PST
Created attachment 19087 [details]
Call setUsesSiblingRules(true) for all CSS3 selectors that require it
Comment 5 Dave Hyatt 2008-02-11 21:58:51 PST
Comment on attachment 19087 [details]
Call setUsesSiblingRules(true) for all CSS3 selectors that require it

r=me
Comment 6 mitz 2008-02-11 22:03:53 PST
Fixed in <http://trac.webkit.org/projects/webkit/changeset/30162>.