WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 304635
323181
REGRESSION: Web Inspector Styles panel displays styles for a different element than the selected element
https://bugs.webkit.org/show_bug.cgi?id=323181
Summary
REGRESSION: Web Inspector Styles panel displays styles for a different elemen...
Harry Nishimori
Reported
2026-09-01 21:29:27 PDT
Created
attachment 481269
[details]
Safari Web Inspector showing incorrect styles for the selected element In Safari 26.6.2 Web Inspector, the Styles panel does not show the styles for the element that is currently selected in the Elements panel. For example, when I select an <a> element with the class "card__link" in the Elements panel, the breadcrumb at the top of Web Inspector correctly shows "a.card__link". However, the Styles panel on the right displays CSS rules for different elements, such as ".card__title" and ".card", instead of the styles for the selected "a.card__link" element. The webpage itself is rendered correctly. The problem is that Web Inspector shows incorrect style information for the selected DOM element. This worked correctly in previous versions of Safari. The same HTML and CSS can be inspected correctly in other browsers, including Chrome. The problem also occurs in Safari Technology Preview. Steps to reproduce: 1. Open a webpage containing multiple elements with different class names. 2. Open Safari Web Inspector and select the Elements tab. 3. Select an element with a specific class, such as "a.card__link". 4. Look at the Styles panel. 5. The Styles panel displays CSS rules belonging to other elements/classes instead of the selected element. Expected result: The Styles panel should display the CSS styles that apply to the currently selected DOM element. Actual result: The Styles panel displays styles for different elements/classes than the selected DOM element.
Attachments
Safari Web Inspector showing incorrect styles for the selected element
(77.89 KB, image/png)
2026-09-01 21:29 PDT
,
Harry Nishimori
no flags
Details
Test HTML/CSS case
(2.01 KB, application/zip)
2026-09-02 16:07 PDT
,
Harry Nishimori
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2026-09-02 09:47:41 PDT
Thank you for the report! I'm unable to reproduce this with Safari 26.6.2 based on the description. Please attach a complete test case or provide a URL where this reproduces for you.
Harry Nishimori
Comment 2
2026-09-02 16:07:46 PDT
Created
attachment 481278
[details]
Test HTML/CSS case Thank you for checking. This issue occurs in my local development environment, so there is no publicly accessible URL available. I have created a self-contained test case that reproduces the issue and attached it to this bug. It includes the HTML and CSS necessary to reproduce the problem. I hope this helps you reproduce and investigate the issue.
Alexey Proskuryakov
Comment 3
2026-09-03 10:22:15 PDT
Thank you! We've been working on fixing this in
bug 304635
. *** This bug has been marked as a duplicate of
bug 304635
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug