Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 41939d4b63f5680cd71a48cd99983fe4b0304eee
https://github.com/WebKit/WebKit/commit/41939d4b63f5680cd71a48cd99983fe4b0304eee
Author: Antti Koivisto <[email protected]>
Date: 2026-06-17 (Wed, 17 Jun 2026)
Changed paths:
A
LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/has-pseudo-element-subject-child-mutation-expected.txt
A
LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/has-pseudo-element-subject-child-mutation.html
M Source/WebCore/css/parser/CSSSelectorParser.cpp
Log Message:
-----------
REGRESSION(311797@main): linkedin.com: verification badge overlaps user's
name on first load
https://bugs.webkit.org/show_bug.cgi?id=317313
rdar://179227702
Reviewed by Alan Baradlay.
In cases like
.foo:has(> .bar)::before
when computing the scope selector we fail to remove pseudo-elements from it.
The selector
then matches nothing when used to construct an invalidation selector or find
the invalidation
scope, causing missed style invalidation.
Test:
imported/w3c/web-platform-tests/css/selectors/invalidation/has-pseudo-element-subject-child-mutation.html
*
LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/has-pseudo-element-subject-child-mutation.html:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/has-pseudo-element-subject-child-mutation-expected.txt:
Added.
* Source/WebCore/css/parser/CSSSelectorParser.cpp:
(WebCore::collectHasCompoundContext):
Canonical link: https://commits.webkit.org/315438@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications