Bug 262968 - Styles on elements of parents with :last-child pseudo-classes not being udpated
Summary: Styles on elements of parents with :last-child pseudo-classes not being udpated
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari 17
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-10-10 11:13 PDT by Ethan Wong
Modified: 2023-12-17 10:13 PST (History)
6 users (show)

See Also:


Attachments
A page that reproduces this issue (859 bytes, text/html)
2023-10-10 11:13 PDT, Ethan Wong
no flags Details
Screen recording of this issue (2.55 MB, video/quicktime)
2023-10-10 11:14 PDT, Ethan Wong
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ethan Wong 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.
Comment 1 Ethan Wong 2023-10-10 11:14:35 PDT
Created attachment 468155 [details]
Screen recording of this issue
Comment 2 Radar WebKit Bug Importer 2023-10-10 13:52:37 PDT
<rdar://problem/116759051>
Comment 3 Ethan Wong 2023-10-14 04:17:31 PDT
Pull request: https://github.com/WebKit/WebKit/pull/19082
Comment 4 Ahmad Saleem 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.