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.
Created attachment 468155 [details] Screen recording of this issue
<rdar://problem/116759051>
Pull request: https://github.com/WebKit/WebKit/pull/19082
@Ethan - I noticed you have closed your PR but while testing the reduction / test case on WebKit ToT (272190@main), it is still reproducible.