WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
329055
Web Inspector: styles panel displays unrelated selectors on moiety.studio main element
https://bugs.webkit.org/show_bug.cgi?id=329055
Summary
Web Inspector: styles panel displays unrelated selectors on moiety.studio mai...
James Craig
Reported
2026-10-27 02:44:32 PDT
Created
attachment 482027
[details]
screen shot On
https://moiety.studio
, if I open the WebKit Web Inspector and select the <main> element the styles panel displays some seemingly unrelated styles, including the div.table selector. See screen shot. I assume this is exposing some implementation detail in Layout and Rendering, but it's really unclear to web authors what is happening here.
Attachments
screen shot
(372.04 KB, image/png)
2026-10-27 02:44 PDT
,
James Craig
no flags
Details
firefox dev tools shows the styles assigned
(302.49 KB, image/png)
2026-10-27 05:01 PDT
,
Zoë Bijl
no flags
Details
321327@main
(774.13 KB, image/png)
2026-10-29 11:55 PDT
,
Razvan Caliman
no flags
Details
321329@main
(762.42 KB, image/png)
2026-10-29 11:56 PDT
,
Razvan Caliman
no flags
Details
325136@main-tip-of-tree
(747.27 KB, image/png)
2026-10-29 11:56 PDT
,
Razvan Caliman
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Zoë Bijl
Comment 1
2026-10-27 05:01:18 PDT
Created
attachment 482030
[details]
firefox dev tools shows the styles assigned for comparison, the firefox devtools show the assigned styles.
Razvan Caliman
Comment 2
2026-10-29 11:03:02 PDT
Confirmed. This _might_ be caused by the patch for
bug 304635
Radar WebKit Bug Importer
Comment 3
2026-10-29 11:03:29 PDT
<
rdar://problem/191319240
>
Razvan Caliman
Comment 4
2026-10-29 11:54:27 PDT
The patch for
bug 304635
(
https://commits.webkit.org/321329@main
) did not cause this. It actually progressed behavior, but it still doesn't look correct. The incorrect styles originally reported look the same as of
https://commits.webkit.org/321327@main
Meanwhile,
https://commits.webkit.org/321329@main
changed the matching styles, but they still look wrong to me (at least they don't match Firefox; perhaps OP can confirm). Same styles on tip-of-tree as of this comment commits.webkit.org/325136@main, so it hasn't regressed since.
Razvan Caliman
Comment 5
2026-10-29 11:55:36 PDT
Created
attachment 482058
[details]
321327@main
Behavior before
bug 304635
Razvan Caliman
Comment 6
2026-10-29 11:56:04 PDT
Created
attachment 482059
[details]
321329@main
Behavior after
https://bugs.webkit.org/show_bug.cgi?id=304635
Razvan Caliman
Comment 7
2026-10-29 11:56:48 PDT
Created
attachment 482060
[details]
325136@main-tip-of-tree
Same behavior on tip-of-tree after
bug 304635
Razvan Caliman
Comment 8
2026-10-29 16:18:34 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/78956
Razvan Caliman
Comment 9
2026-10-29 16:34:06 PDT
A nested CSS rule like `a:hover {}` was reported as an invalid *CSS declaration* to Web Inspector before the CSS Parser rewinds and treats it as a nested rule. Only Web Inspector is impacted. The page renders correctly. After
321329@main
, properties after a nested rule create an inferred nested declaration to mirror the declarations in the CSSOM. The bogus `a:hover` interpreted as a *CSS declaration* created the entry which shifted the source data for every following rule in the stylesheet. Web Inspector ended up showing rules at the wrong index.
Razvan Caliman
Comment 10
2026-11-04 04:17:35 PST
***
Bug 329670
has been marked as a duplicate of this bug. ***
EWS
Comment 11
2026-11-04 09:32:43 PST
Committed
325742@main
(1f798b0ae3bf): <
https://commits.webkit.org/325742@main
> Reviewed commits have been landed. Closing PR #78956 and removing active labels.
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