When using the Inspector, the sidebar of the Elements tab can be switched between a two-column view and a unified view using the "show independent Styles sidebar" setting. When the sidebar is unified (the setting is disabled), the button to jump to the source of a rule in "Computed" tab does not work. It either switches to the Styles tab and does nothing, or if the user clicks the goto arrow for multiple rules, sometimes it will jump to a previous rule. This occurs with both Safari 17.4 and the latest STP.
When the sidebar is unified, SpreadsheetCSSStyleDeclarationEditor.selectProperties() is called multiple times, for previous highlighted properties and then the current properties. This is because the previous highlighted properties are preserved when re-opening the Styles tab, which is usually our desired behaviour, but causes problems when the user asks for a new property to be highlighted. This does not cause issues with the two-column view since the Styles tab is already open there, so the behaviour wrt remembering previous properties is not triggered.
It appears that the problem is in unrelated to the above - the property is highlighted, but is just not scrolled to.
Pull request: https://github.com/WebKit/WebKit/pull/27503
<rdar://problem/127025520>
Committed 278686@main (b8288eb0b2ed): <https://commits.webkit.org/278686@main> Reviewed commits have been landed. Closing PR #27503 and removing active labels.