Bug 253956

Summary: Web Inspector: Styles Panel: Adding a new CSS rule doesn't work on first attempt
Product: WebKit Reporter: Razvan Caliman <rcaliman>
Component: Web InspectorAssignee: Razvan Caliman <rcaliman>
Status: RESOLVED FIXED    
Severity: Normal CC: inspector-bugzilla-changes, rcaliman, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
Video recording of bug none

Description Razvan Caliman 2023-03-15 05:27:55 PDT
Created attachment 465445 [details]
Video recording of bug

Clicking the button to add a new CSS rule doesn't work on first attempt. Likewise when using the context menu to create a new pseudo-element (::before/::after) or pseudo-class rule (:visited/:hover/etc.)
The operation works after the second attempt, but two CSS rules are added.

Repeatedly adding a CSS rule with the same selector marks all duplicate rules as editable. Only the last created rule should be editable.
Comment 1 Radar WebKit Bug Importer 2023-03-15 05:28:29 PDT
<rdar://problem/106751396>
Comment 2 Razvan Caliman 2023-03-15 05:45:35 PDT
Pull request: https://github.com/WebKit/WebKit/pull/11547
Comment 3 EWS 2023-03-20 11:23:15 PDT
Committed 261883@main (96c03ed0c66b): <https://commits.webkit.org/261883@main>

Reviewed commits have been landed. Closing PR #11547 and removing active labels.