[webkit-changes] [WebKit/WebKit] c5064e: Web Inspector: Don't show `::backdrop` rules for e...
Patrick Angle
noreply at github.com
Mon Feb 6 08:54:08 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c5064e5e284d10414bb3d55f3603729687f99260
https://github.com/WebKit/WebKit/commit/c5064e5e284d10414bb3d55f3603729687f99260
Author: Patrick Angle <pangle at apple.com>
Date: 2023-02-06 (Mon, 06 Feb 2023)
Changed paths:
M LayoutTests/inspector/css/getMatchedStylesForNode.html
A LayoutTests/inspector/css/getMatchedStylesForNodeBackdropPseudoId-expected.txt
A LayoutTests/inspector/css/getMatchedStylesForNodeBackdropPseudoId.html
M Source/WebCore/inspector/agents/InspectorCSSAgent.cpp
Log Message:
-----------
Web Inspector: Don't show `::backdrop` rules for elements without a backdrop
https://bugs.webkit.org/show_bug.cgi?id=251466
rdar://104889944
Reviewed by Tim Nguyen.
`::backdrop` only applies to elements in the top layer. Like `::marker`, we should not display this selector for elements it can't apply to.
* LayoutTests/inspector/css/getMatchedStylesForNode.html:
* LayoutTests/inspector/css/getMatchedStylesForNodeBackdropPseudoId-expected.txt: Added.
* LayoutTests/inspector/css/getMatchedStylesForNodeBackdropPseudoId.html: Added.
* Source/WebCore/inspector/agents/InspectorCSSAgent.cpp:
(WebCore::InspectorCSSAgent::getMatchedStylesForNode):
Canonical link: https://commits.webkit.org/259894@main
More information about the webkit-changes
mailing list