Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f2441fbb57d8bc69d7c21c18f9e0dbb19d4627b0
https://github.com/WebKit/WebKit/commit/f2441fbb57d8bc69d7c21c18f9e0dbb19d4627b0
Author: Anne van Kesteren <[email protected]>
Date: 2026-02-24 (Tue, 24 Feb 2026)
Changed paths:
M
LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/file-selector-button-inherit-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/placeholder-inherit-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/css/css-shadow-parts/interaction-with-pseudo-elements-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-pseudo-expected.txt
A
LayoutTests/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-pseudo-picker-expected.txt
A
LayoutTests/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-pseudo-picker.html
M
LayoutTests/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-pseudo.html
M
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-select-element/customizable-select/select-base-appearance-computed-style-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-select-element/customizable-select/switch-picker-appearance-expected.txt
M Source/WebCore/Sources.txt
M Source/WebCore/WebCore.xcodeproj/project.pbxproj
M Source/WebCore/animation/KeyframeEffect.cpp
M Source/WebCore/animation/WebAnimationUtilities.cpp
M Source/WebCore/css/SelectorChecker.cpp
M Source/WebCore/css/parser/CSSPropertyParserConsumer+Overflow.cpp
M Source/WebCore/css/parser/CSSSelectorParser.cpp
M Source/WebCore/css/parser/CSSSelectorParser.h
M Source/WebCore/dom/Element.cpp
M Source/WebCore/dom/Element.h
M Source/WebCore/page/LocalDOMWindow.cpp
M Source/WebCore/rendering/HitTestResult.cpp
M Source/WebCore/rendering/style/RenderStyleConstants.h
M Source/WebCore/style/ElementRuleCollector.cpp
M Source/WebCore/style/PseudoElementIdentifier.h
M Source/WebCore/style/PseudoElementRequest.h
A Source/WebCore/style/PseudoElementUtilities.cpp
A Source/WebCore/style/PseudoElementUtilities.h
M Source/WebCore/style/StyleDifference.cpp
M Source/WebCore/style/StyleTreeResolver.cpp
M Source/WebCore/style/Styleable.cpp
M Source/WebCore/style/Styleable.h
M Source/WebCore/style/computed/StyleComputedStyleBase+SettersInlines.h
Log Message:
-----------
Support user agent part pseudo-elements in getComputedStyle()
https://bugs.webkit.org/show_bug.cgi?id=308380
Reviewed by Antti Koivisto.
This enables support for ::picker(select) and ::file-selector-button
and the like, while not adding support for non-standard
pseudo-elements.
We do this by eagerly looking up the relevant element in the shadow
tree before creating a CSSComputedStyleDeclaration instance, but when
there is no such element we make use of the new StandardUserAgentPart
to pick up author-defined styles which need to be reflected as shown in
the various tests.
New test:
https://github.com/web-platform-tests/wpt/pull/57959
https://github.com/web-platform-tests/wpt/pull/58009
Canonical link: https://commits.webkit.org/308118@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications