When focused on a CSS rule, Command-S should save the owner CSS resource the same way if we were to edit this CSS in Resources tab. The legacy styles sidebar supported it. <rdar://problem/35648633>
Created attachment 329555 [details] Patch
This is essentially the same patch as it was for the old styles sidebar in 2015 Bug 150298 - Web Inspector: Pressing Command-S while focused on the styles sidebar should save CSS file.
Comment on attachment 329555 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=329555&action=review > Source/WebInspectorUI/UserInterface/Views/SpreadsheetCSSStyleDeclarationSection.js:407 > + url = pathDirectory + "base64.css"; Why base64.css? data.css? WI.frameResourceManager.mainFrame.mainResource.url - ".html" + "-data.css"?
Created attachment 329684 [details] Patch
Comment on attachment 329684 [details] Patch Clearing flags on attachment: 329684 Committed r226082: <https://trac.webkit.org/changeset/226082>
All reviewed patches have been landed. Closing bug.