Bug 262968

Summary: Styles on elements of parents with :last-child pseudo-classes not being udpated
Product: WebKit Reporter: Ethan Wong <bunnnywong>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: ahmad.saleem792, bfulgham, gchavan, koivisto, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: Safari 17   
Hardware: All   
OS: All   
Attachments:
Description Flags
A page that reproduces this issue
none
Screen recording of this issue none

Ethan Wong
Reported 2023-10-10 11:13:51 PDT
Created attachment 468154 [details] A page that reproduces this issue Styles on elements of parents with :last-child pseudo-classes may not update correctly when new elements being added. The attached html file reproduces this issue.
Attachments
A page that reproduces this issue (859 bytes, text/html)
2023-10-10 11:13 PDT, Ethan Wong
no flags
Screen recording of this issue (2.55 MB, video/quicktime)
2023-10-10 11:14 PDT, Ethan Wong
no flags
Ethan Wong
Comment 1 2023-10-10 11:14:35 PDT
Created attachment 468155 [details] Screen recording of this issue
Radar WebKit Bug Importer
Comment 2 2023-10-10 13:52:37 PDT
Ethan Wong
Comment 3 2023-10-14 04:17:31 PDT
Ahmad Saleem
Comment 4 2023-12-17 10:13:12 PST
@Ethan - I noticed you have closed your PR but while testing the reduction / test case on WebKit ToT (272190@main), it is still reproducible.
gchavan
Comment 5 2025-03-06 12:04:07 PST
I able to reproduce this issue in Safari version 17 and later, and also in the latest version i.e. 18.3 Not able to reproduce it in version 16.5.1 Is there an alternative solution available?
Note You need to log in before you can comment on or make changes to this bug.