chrome-devtools-frontend 1.0.1684555 → 1.0.1689415

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (602) hide show
  1. package/.agents/skills/gerrit-cli/SKILL.md +29 -8
  2. package/.agents/skills/gerrit-cli/references/commands.md +51 -18
  3. package/.agents/skills/gerrit-cli/references/workflows.md +6 -6
  4. package/.agents/skills/gerrit-cli/scripts/import_upstream.py +43 -70
  5. package/config/typescript/tsconfig.base.json +1 -0
  6. package/config/typescript/tsconfig.eslint.json +9 -0
  7. package/docs/contributing/issues.md +1 -1
  8. package/docs/styleguide/ux/writing.md +2 -2
  9. package/eslint.config.mjs +18 -10
  10. package/front_end/core/common/Base64.ts +1 -1
  11. package/front_end/core/common/Color.ts +28 -6
  12. package/front_end/core/common/ColorConverter.ts +12 -0
  13. package/front_end/core/common/Console.ts +2 -1
  14. package/front_end/core/common/Object.ts +2 -2
  15. package/front_end/core/common/ResourceType.ts +12 -13
  16. package/front_end/core/common/Revealer.ts +1 -1
  17. package/front_end/core/common/Settings.ts +2 -2
  18. package/front_end/core/common/TextDictionary.ts +2 -2
  19. package/front_end/core/common/Throttler.ts +1 -1
  20. package/front_end/core/host/InspectorFrontendHostAPI.ts +2 -2
  21. package/front_end/core/host/UserMetrics.ts +51 -37
  22. package/front_end/core/host/host.ts +1 -1
  23. package/front_end/core/i18n/i18nImpl.ts +1 -1
  24. package/front_end/core/platform/HostRuntime.ts +3 -3
  25. package/front_end/core/platform/KeyboardUtilities.ts +1 -1
  26. package/front_end/core/protocol_client/InspectorBackend.ts +7 -6
  27. package/front_end/core/root/Runtime.ts +4 -2
  28. package/front_end/core/sdk/AnimationModel.ts +1 -1
  29. package/front_end/core/sdk/CPUThrottlingManager.ts +198 -0
  30. package/front_end/core/sdk/CSSMetadata.ts +11 -6
  31. package/front_end/core/sdk/CSSPropertyParser.ts +5 -3
  32. package/front_end/core/sdk/CSSPropertyParserMatchers.ts +90 -59
  33. package/front_end/core/sdk/ConsoleModel.ts +1 -1
  34. package/front_end/core/sdk/DOMModel.ts +3 -3
  35. package/front_end/core/sdk/DebuggerModel.ts +1 -1
  36. package/front_end/core/sdk/EmulationModel.ts +5 -0
  37. package/front_end/core/sdk/LayerTreeBase.ts +1 -1
  38. package/front_end/core/sdk/NetworkManager.ts +1 -1
  39. package/front_end/core/sdk/README.md +40 -0
  40. package/front_end/core/sdk/RehydratingConnection.ts +1 -1
  41. package/front_end/core/sdk/RemoteObject.ts +1 -1
  42. package/front_end/core/sdk/ResourceTreeModel.ts +2 -2
  43. package/front_end/core/sdk/SDKModel.ts +1 -1
  44. package/front_end/core/sdk/SDKSettings.ts +6 -0
  45. package/front_end/core/sdk/Script.ts +2 -1
  46. package/front_end/core/sdk/SecurityOrigin.ts +48 -0
  47. package/front_end/core/sdk/ServiceWorkerManager.ts +75 -17
  48. package/front_end/core/sdk/sdk.ts +2 -0
  49. package/front_end/core/text_utils/ContentData.ts +1 -1
  50. package/front_end/entrypoints/formatter_worker/FormattedContentBuilder.ts +3 -1
  51. package/front_end/entrypoints/formatter_worker/FormatterWorker.ts +1 -1
  52. package/front_end/entrypoints/formatter_worker/ScopeParser.ts +2 -2
  53. package/front_end/entrypoints/formatter_worker/Substitute.ts +1 -1
  54. package/front_end/entrypoints/formatter_worker/formatter_worker-entrypoint.ts +1 -1
  55. package/front_end/entrypoints/inspector_main/InspectorMain.ts +1 -1
  56. package/front_end/entrypoints/inspector_main/OutermostTargetSelector.ts +1 -1
  57. package/front_end/entrypoints/inspector_main/nodeIcon.css +1 -1
  58. package/front_end/entrypoints/inspector_main/outermostTargetSelector.css +3 -3
  59. package/front_end/entrypoints/inspector_main/renderingOptions.css +3 -3
  60. package/front_end/entrypoints/js_app/js_app.ts +25 -9
  61. package/front_end/entrypoints/node_app/app/nodeConnectionsPanel.css +5 -5
  62. package/front_end/entrypoints/node_app/node_app.ts +1 -1
  63. package/front_end/generated/ARIAProperties.ts +39 -1
  64. package/front_end/generated/InspectorBackendCommands.ts +2 -1
  65. package/front_end/generated/SupportedCSSProperties.ts +60 -119
  66. package/front_end/generated/protocol-mapping.d.ts +9 -0
  67. package/front_end/generated/protocol-proxy-api.d.ts +7 -0
  68. package/front_end/generated/protocol.ts +12 -2
  69. package/front_end/models/ai_assistance/AiAgent2.ts +13 -7
  70. package/front_end/models/ai_assistance/AiConversation.ts +8 -17
  71. package/front_end/models/ai_assistance/AiHistoryStorage.ts +2 -2
  72. package/front_end/models/ai_assistance/AiUtils.ts +16 -0
  73. package/front_end/models/ai_assistance/EvaluateAction.ts +1 -1
  74. package/front_end/models/ai_assistance/README.md +1 -1
  75. package/front_end/models/ai_assistance/agents/AccessibilityAgent.ts +2 -3
  76. package/front_end/models/ai_assistance/agents/AiAgent.ts +29 -6
  77. package/front_end/models/ai_assistance/agents/ContextSelectionAgent.ts +4 -3
  78. package/front_end/models/ai_assistance/agents/FileAgent.ts +2 -2
  79. package/front_end/models/ai_assistance/agents/NetworkAgent.ts +2 -2
  80. package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +1 -1
  81. package/front_end/models/ai_assistance/agents/StorageAgent.ts +7 -5
  82. package/front_end/models/ai_assistance/agents/StylingAgent.snapshot.txt +2 -2
  83. package/front_end/models/ai_assistance/agents/StylingAgent.ts +9 -7
  84. package/front_end/models/ai_assistance/ai_assistance.ts +8 -0
  85. package/front_end/models/ai_assistance/contexts/AccessibilityContext.ts +16 -1
  86. package/front_end/models/ai_assistance/contexts/FileContext.ts +6 -0
  87. package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.snapshot.txt +150 -325
  88. package/front_end/models/ai_assistance/injected.ts +5 -3
  89. package/front_end/models/ai_assistance/performance/AIContext.ts +1 -1
  90. package/front_end/models/ai_assistance/skills/README.md +1 -1
  91. package/front_end/models/ai_assistance/skills/accessibility.md +19 -10
  92. package/front_end/models/ai_assistance/skills/network.md +13 -7
  93. package/front_end/models/ai_assistance/skills/performance.md +22 -16
  94. package/front_end/models/ai_assistance/skills/sources.md +13 -7
  95. package/front_end/models/ai_assistance/skills/storage.md +19 -18
  96. package/front_end/models/ai_assistance/skills/styling.md +30 -37
  97. package/front_end/models/ai_assistance/tools/CookieUtils.ts +120 -0
  98. package/front_end/models/ai_assistance/tools/DOMStorageUtils.ts +53 -4
  99. package/front_end/models/ai_assistance/tools/ExecuteJavaScript.ts +8 -32
  100. package/front_end/models/ai_assistance/tools/GetCookieValues.ts +146 -0
  101. package/front_end/models/ai_assistance/tools/GetDetailedCallTree.ts +11 -9
  102. package/front_end/models/ai_assistance/tools/GetElementAccessibilityDetails.ts +17 -5
  103. package/front_end/models/ai_assistance/tools/GetFunctionCode.ts +12 -11
  104. package/front_end/models/ai_assistance/tools/GetInsightDetails.ts +11 -11
  105. package/front_end/models/ai_assistance/tools/GetLighthouseAudits.ts +3 -2
  106. package/front_end/models/ai_assistance/tools/GetNetworkRequestDetails.ts +3 -3
  107. package/front_end/models/ai_assistance/tools/GetResourceContent.ts +12 -12
  108. package/front_end/models/ai_assistance/tools/GetSourceContent.ts +3 -2
  109. package/front_end/models/ai_assistance/tools/GetStorageBreakdown.ts +132 -0
  110. package/front_end/models/ai_assistance/tools/GetStorageValues.ts +17 -4
  111. package/front_end/models/ai_assistance/tools/GetStyles.ts +3 -3
  112. package/front_end/models/ai_assistance/tools/GetTraceEventByKey.ts +9 -8
  113. package/front_end/models/ai_assistance/tools/GetTraceMainThreadSummary.ts +13 -14
  114. package/front_end/models/ai_assistance/tools/GetTraceNetworkSummary.ts +12 -10
  115. package/front_end/models/ai_assistance/tools/ListCookies.ts +93 -0
  116. package/front_end/models/ai_assistance/tools/ListNetworkRequests.ts +15 -6
  117. package/front_end/models/ai_assistance/tools/ListPageOrigins.ts +3 -3
  118. package/front_end/models/ai_assistance/tools/ListSources.ts +5 -3
  119. package/front_end/models/ai_assistance/tools/ListStorageKeys.ts +16 -4
  120. package/front_end/models/ai_assistance/tools/RecordPerformanceTrace.ts +3 -2
  121. package/front_end/models/ai_assistance/tools/ResolveDevtoolsNodePath.ts +4 -3
  122. package/front_end/models/ai_assistance/tools/RunLighthouse.ts +9 -9
  123. package/front_end/models/ai_assistance/tools/SelectTraceEventByKey.ts +9 -8
  124. package/front_end/models/ai_assistance/tools/Tool.ts +21 -11
  125. package/front_end/models/ai_assistance/tools/ToolRegistry.ts +41 -8
  126. package/front_end/models/badges/AiExplorerBadge.ts +3 -3
  127. package/front_end/models/badges/CodeWhispererBadge.ts +2 -2
  128. package/front_end/models/badges/DOMDetectiveBadge.ts +3 -3
  129. package/front_end/models/badges/SpeedsterBadge.ts +3 -3
  130. package/front_end/models/badges/StarterBadge.ts +4 -4
  131. package/front_end/models/bindings/CompilerScriptMapping.ts +11 -2
  132. package/front_end/models/bindings/ContentProviderBasedProject.ts +3 -2
  133. package/front_end/models/breakpoints/BreakpointManager.ts +1 -1
  134. package/front_end/models/emulation/EmulatedDevices.ts +2 -2
  135. package/front_end/models/formatter/FormatterWorkerPool.ts +2 -2
  136. package/front_end/models/formatter/ScriptFormatter.ts +1 -2
  137. package/front_end/models/geometry/GeometryImpl.ts +2 -2
  138. package/front_end/models/heap_snapshot/HeapSnapshotModel.ts +1 -1
  139. package/front_end/models/heap_snapshot/HeapSnapshotProxy.ts +3 -2
  140. package/front_end/models/issues_manager/ContentSecurityPolicyIssue.ts +5 -5
  141. package/front_end/models/issues_manager/GenericIssue.ts +18 -18
  142. package/front_end/models/issues_manager/StylesheetLoadingIssue.ts +1 -1
  143. package/front_end/models/javascript_metadata/{NativeFunctions.js → NativeFunctions.ts} +25 -9
  144. package/front_end/models/live-metrics/LiveMetrics.ts +9 -3
  145. package/front_end/models/live-metrics/web-vitals-injected/spec/spec.ts +58 -6
  146. package/front_end/models/live-metrics/web-vitals-injected/web-vitals-injected.ts +2 -62
  147. package/front_end/models/network_time_calculator/RequestTimeRanges.ts +2 -2
  148. package/front_end/models/persistence/AutomaticFileSystemWorkspaceBinding.ts +5 -0
  149. package/front_end/models/persistence/IsolatedFileSystem.ts +1 -1
  150. package/front_end/models/persistence/NetworkPersistenceManager.ts +35 -6
  151. package/front_end/models/stack_trace/StackTraceImpl.ts +2 -2
  152. package/front_end/models/trace/LanternComputationData.ts +2 -3
  153. package/front_end/models/trace/extras/StackTraceForEvent.ts +3 -2
  154. package/front_end/models/trace/extras/ThirdParties.ts +9 -9
  155. package/front_end/models/trace/handlers/AsyncJSCallsHandler.ts +7 -4
  156. package/front_end/models/trace/handlers/FramesHandler.ts +3 -3
  157. package/front_end/models/trace/handlers/LayoutShiftsHandler.ts +2 -2
  158. package/front_end/models/trace/handlers/SamplesHandler.ts +4 -2
  159. package/front_end/models/trace/handlers/UserInteractionsHandler.ts +1 -1
  160. package/front_end/models/trace/handlers/WarningsHandler.ts +2 -2
  161. package/front_end/models/trace/helpers/Network.ts +3 -3
  162. package/front_end/models/trace/helpers/Trace.ts +1 -1
  163. package/front_end/models/trace/insights/CLSCulprits.ts +2 -1
  164. package/front_end/models/trace/insights/Cache.ts +3 -1
  165. package/front_end/models/trace/insights/CharacterSet.ts +3 -1
  166. package/front_end/models/trace/insights/DOMSize.ts +3 -1
  167. package/front_end/models/trace/insights/DocumentLatency.ts +3 -1
  168. package/front_end/models/trace/insights/DuplicatedJavaScript.ts +3 -1
  169. package/front_end/models/trace/insights/FontDisplay.ts +2 -1
  170. package/front_end/models/trace/insights/ForcedReflow.ts +2 -1
  171. package/front_end/models/trace/insights/INPBreakdown.ts +3 -1
  172. package/front_end/models/trace/insights/ImageDelivery.ts +3 -1
  173. package/front_end/models/trace/insights/LCPBreakdown.ts +3 -1
  174. package/front_end/models/trace/insights/LCPDiscovery.ts +3 -1
  175. package/front_end/models/trace/insights/LegacyJavaScript.ts +3 -1
  176. package/front_end/models/trace/insights/ModernHTTP.ts +2 -1
  177. package/front_end/models/trace/insights/NetworkDependencyTree.ts +2 -1
  178. package/front_end/models/trace/insights/RenderBlocking.ts +5 -4
  179. package/front_end/models/trace/insights/SlowCSSSelector.ts +3 -1
  180. package/front_end/models/trace/insights/ThirdParties.ts +5 -3
  181. package/front_end/models/trace/insights/Viewport.ts +2 -1
  182. package/front_end/models/trace/lantern/simulation/Constants.ts +34 -2
  183. package/front_end/models/trace/lantern/simulation/DNSCache.ts +1 -1
  184. package/front_end/models/trace/types/TraceEvents.ts +8 -3
  185. package/front_end/models/trace_source_maps_resolver/SourceMapsResolver.ts +2 -1
  186. package/front_end/models/workspace/WorkspaceImpl.ts +18 -2
  187. package/front_end/panels/accessibility/AccessibilityAnnouncementRecordingView.ts +686 -2
  188. package/front_end/panels/accessibility/accessibilityNode.css +4 -4
  189. package/front_end/panels/accessibility/accessibilityProperties.css +1 -1
  190. package/front_end/panels/accessibility/accessibilitySidebarView.css +2 -2
  191. package/front_end/panels/accessibility/axBreadcrumbs.css +13 -13
  192. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +14 -14
  193. package/front_end/panels/ai_assistance/ExternalHandler.ts +1 -1
  194. package/front_end/panels/ai_assistance/aiAssistancePanel.css +1 -1
  195. package/front_end/panels/ai_assistance/components/ChatInput.ts +3 -2
  196. package/front_end/panels/ai_assistance/components/ChatView.ts +1 -1
  197. package/front_end/panels/ai_assistance/components/DisabledWidget.ts +1 -1
  198. package/front_end/panels/ai_assistance/components/ExploreWidget.ts +1 -1
  199. package/front_end/panels/ai_assistance/components/chatInput.css +12 -12
  200. package/front_end/panels/ai_assistance/components/chatMessage.css +16 -16
  201. package/front_end/panels/ai_assistance/components/chatView.css +2 -2
  202. package/front_end/panels/ai_assistance/components/exploreWidget.css +1 -1
  203. package/front_end/panels/ai_assistance/components/exportForAgentsDialog.css +4 -0
  204. package/front_end/panels/ai_assistance/components/walkthroughView.css +6 -6
  205. package/front_end/panels/animation/animationTimeline.css +62 -62
  206. package/front_end/panels/application/ApplicationPanelSidebar.ts +6 -1
  207. package/front_end/panels/application/BackgroundServiceView.ts +290 -252
  208. package/front_end/panels/application/WebMCPView.ts +15 -7
  209. package/front_end/panels/application/appManifestView.css +5 -5
  210. package/front_end/panels/application/backgroundServiceView.css +18 -2
  211. package/front_end/panels/application/components/AdsView.ts +100 -4
  212. package/front_end/panels/application/components/adsView.css +8 -5
  213. package/front_end/panels/application/components/backForwardCacheView.css +5 -5
  214. package/front_end/panels/application/components/bounceTrackingMitigationsView.css +1 -1
  215. package/front_end/panels/application/components/endpointsGrid.css +1 -1
  216. package/front_end/panels/application/components/permissionsPolicySection.css +1 -1
  217. package/front_end/panels/application/components/protocolHandlersView.css +6 -6
  218. package/front_end/panels/application/components/reportsGrid.css +1 -1
  219. package/front_end/panels/application/components/serviceWorkerRouterView.css +4 -4
  220. package/front_end/panels/application/components/trustTokensView.css +7 -7
  221. package/front_end/panels/application/cookieItemsView.css +3 -3
  222. package/front_end/panels/application/deviceBoundSessionsView.css +3 -3
  223. package/front_end/panels/application/frameDetailsReportView.css +11 -11
  224. package/front_end/panels/application/indexedDBViews.css +7 -7
  225. package/front_end/panels/application/originTrialTokenRows.css +2 -2
  226. package/front_end/panels/application/originTrialTreeView.css +3 -3
  227. package/front_end/panels/application/preloading/components/RuleSetDetailsView.css +2 -2
  228. package/front_end/panels/application/preloading/components/preloadingDetailsReportView.css +1 -1
  229. package/front_end/panels/application/preloading/components/preloadingDisabledInfobar.css +2 -2
  230. package/front_end/panels/application/preloading/components/preloadingGrid.css +2 -2
  231. package/front_end/panels/application/preloading/components/usedPreloadingView.css +7 -7
  232. package/front_end/panels/application/preloading/preloadingView.css +1 -1
  233. package/front_end/panels/application/preloading/preloadingViewDropDown.css +3 -3
  234. package/front_end/panels/application/serviceWorkerCacheViews.css +5 -5
  235. package/front_end/panels/application/serviceWorkerUpdateCycleView.css +12 -12
  236. package/front_end/panels/application/serviceWorkersView.css +15 -16
  237. package/front_end/panels/application/storageView.css +5 -5
  238. package/front_end/panels/application/webMCPView.css +9 -9
  239. package/front_end/panels/autofill/autofillView.css +4 -4
  240. package/front_end/panels/browser_debugger/categorizedBreakpointsSidebarPane.css +4 -4
  241. package/front_end/panels/browser_debugger/domBreakpointsSidebarPane.css +5 -3
  242. package/front_end/panels/browser_debugger/xhrBreakpointsSidebarPane.css +4 -4
  243. package/front_end/panels/changes/changesSidebar.css +1 -1
  244. package/front_end/panels/changes/changesView.css +1 -1
  245. package/front_end/panels/changes/combinedDiffView.css +1 -1
  246. package/front_end/panels/common/CPUThrottlingOption.ts +5 -10
  247. package/front_end/panels/common/badgeNotification.css +2 -2
  248. package/front_end/panels/common/domLinkifier.css +1 -1
  249. package/front_end/panels/common/gdpSignUpDialog.css +3 -3
  250. package/front_end/panels/common/geminiRebrandPromoDialog.css +1 -1
  251. package/front_end/panels/console/ConsolePrompt.ts +6 -3
  252. package/front_end/panels/console/ConsoleView.ts +6 -3
  253. package/front_end/panels/console/ConsoleViewMessage.ts +3 -1
  254. package/front_end/panels/console/console-meta.ts +5 -24
  255. package/front_end/panels/console/consoleContextSelector.css +2 -2
  256. package/front_end/panels/console/consolePinPane.css +9 -9
  257. package/front_end/panels/console/consolePrompt.css +5 -5
  258. package/front_end/panels/console/consoleView.css +39 -39
  259. package/front_end/panels/coverage/coverageListView.css +2 -2
  260. package/front_end/panels/css_overview/cssOverviewCompletedView.css +34 -34
  261. package/front_end/panels/css_overview/cssOverviewProcessingView.css +5 -5
  262. package/front_end/panels/css_overview/cssOverviewSidebarPanel.css +1 -1
  263. package/front_end/panels/css_overview/cssOverviewStartView.css +17 -17
  264. package/front_end/panels/elements/AdoptedStyleSheetTreeElement.ts +209 -62
  265. package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +4 -4
  266. package/front_end/panels/elements/DOMTreeContextMenu.ts +59 -54
  267. package/front_end/panels/elements/ElementsPanel.ts +1 -1
  268. package/front_end/panels/elements/ElementsTreeElement.ts +130 -94
  269. package/front_end/panels/elements/ElementsTreeOutline.ts +1751 -363
  270. package/front_end/panels/elements/ShortcutTreeElement.ts +6 -3
  271. package/front_end/panels/elements/StylePropertiesSection.ts +65 -8
  272. package/front_end/panels/elements/StylePropertyTreeElement.ts +6 -0
  273. package/front_end/panels/elements/StylesSidebarPane.ts +143 -8
  274. package/front_end/panels/elements/classesPaneWidget.css +6 -6
  275. package/front_end/panels/elements/components/stylePropertyEditor.css +7 -7
  276. package/front_end/panels/elements/computedStyleWidget.css +1 -1
  277. package/front_end/panels/elements/elementStatePaneWidget.css +8 -8
  278. package/front_end/panels/elements/elements-meta.ts +14 -0
  279. package/front_end/panels/elements/elementsPanel.css +4 -4
  280. package/front_end/panels/elements/elementsTreeOutline.css +222 -38
  281. package/front_end/panels/elements/layersWidget.css +4 -4
  282. package/front_end/panels/elements/layoutPane.css +18 -18
  283. package/front_end/panels/elements/metricsSidebarPane.css +11 -11
  284. package/front_end/panels/elements/platformFontsWidget.css +5 -5
  285. package/front_end/panels/elements/propertiesWidget.css +2 -2
  286. package/front_end/panels/elements/stylePropertiesTreeOutline.css +20 -20
  287. package/front_end/panels/elements/stylesSidebarPane.css +37 -20
  288. package/front_end/panels/emulation/deviceModeView.css +49 -49
  289. package/front_end/panels/emulation/mediaQueryInspector.css +18 -18
  290. package/front_end/panels/event_listeners/eventListenersView.css +1 -1
  291. package/front_end/panels/explain/components/consoleInsight.css +29 -29
  292. package/front_end/panels/issues/components/elementsPanelLink.css +2 -2
  293. package/front_end/panels/issues/components/hideIssuesMenu.css +1 -1
  294. package/front_end/panels/issues/issuesPane.css +2 -2
  295. package/front_end/panels/issues/issuesTree.css +50 -50
  296. package/front_end/panels/layer_viewer/Layers3DView.ts +9 -10
  297. package/front_end/panels/layer_viewer/layerDetailsView.css +1 -1
  298. package/front_end/panels/layer_viewer/layerTreeOutline.css +2 -2
  299. package/front_end/panels/layer_viewer/layers3DView.css +1 -1
  300. package/front_end/panels/layer_viewer/paintProfiler.css +1 -1
  301. package/front_end/panels/lighthouse/LighthouseReportSelector.ts +2 -2
  302. package/front_end/panels/media/playerListView.css +9 -9
  303. package/front_end/panels/media/playerMessagesView.css +8 -8
  304. package/front_end/panels/media/playerPropertiesView.css +6 -6
  305. package/front_end/panels/mobile_throttling/NetworkPanelIndicator.ts +1 -1
  306. package/front_end/panels/mobile_throttling/throttlingSettingsTab.css +9 -9
  307. package/front_end/panels/network/NetworkDataGridNode.ts +1 -0
  308. package/front_end/panels/network/NetworkPanel.ts +9 -4
  309. package/front_end/panels/network/RequestConditionsDrawer.ts +12 -12
  310. package/front_end/panels/network/RequestPayloadView.ts +78 -26
  311. package/front_end/panels/network/binaryResourceView.css +1 -1
  312. package/front_end/panels/network/components/EditableSpan.css +3 -3
  313. package/front_end/panels/network/components/HeaderSectionRow.css +14 -14
  314. package/front_end/panels/network/components/RequestHeaderSection.css +7 -7
  315. package/front_end/panels/network/components/RequestHeadersView.css +18 -18
  316. package/front_end/panels/network/components/RequestTrustTokensView.css +1 -1
  317. package/front_end/panels/network/network-meta.ts +9 -9
  318. package/front_end/panels/network/networkConfigView.css +11 -11
  319. package/front_end/panels/network/networkLogView.css +35 -35
  320. package/front_end/panels/network/networkManageCustomHeadersView.css +1 -1
  321. package/front_end/panels/network/networkPanel.css +7 -7
  322. package/front_end/panels/network/networkTimingTable.css +13 -13
  323. package/front_end/panels/network/requestConditionsDrawer.css +4 -4
  324. package/front_end/panels/network/requestCookiesView.css +5 -5
  325. package/front_end/panels/network/requestDeviceBoundSessionsView.css +1 -1
  326. package/front_end/panels/network/requestHTMLView.css +1 -1
  327. package/front_end/panels/network/requestHeadersTree.css +19 -19
  328. package/front_end/panels/network/requestInitiatorView.css +1 -1
  329. package/front_end/panels/network/requestInitiatorViewTree.css +3 -3
  330. package/front_end/panels/network/requestPayloadTree.css +5 -5
  331. package/front_end/panels/network/requestPayloadView.css +1 -1
  332. package/front_end/panels/network/resourceChunkView.css +3 -3
  333. package/front_end/panels/network/signedExchangeInfoTree.css +6 -6
  334. package/front_end/panels/profiler/heapProfiler.css +15 -15
  335. package/front_end/panels/profiler/profileLauncherView.css +10 -10
  336. package/front_end/panels/recorder/RecordingView.ts +1 -1
  337. package/front_end/panels/recorder/StepEditor.ts +86 -7
  338. package/front_end/panels/recorder/TimelineSection.ts +2 -1
  339. package/front_end/panels/recorder/createRecordingView.css +17 -17
  340. package/front_end/panels/recorder/extensionView.css +5 -5
  341. package/front_end/panels/recorder/injected/RecordingClient.ts +1 -1
  342. package/front_end/panels/recorder/models/SchemaUtils.ts +2 -2
  343. package/front_end/panels/recorder/models/ScreenshotStorage.ts +1 -1
  344. package/front_end/panels/recorder/recorderPanel.css +7 -7
  345. package/front_end/panels/recorder/recordingListView.css +12 -12
  346. package/front_end/panels/recorder/recordingView.css +47 -47
  347. package/front_end/panels/recorder/stepEditor.css +2 -2
  348. package/front_end/panels/recorder/stepView.css +20 -20
  349. package/front_end/panels/recorder/timelineSection.css +9 -9
  350. package/front_end/panels/screencast/screencastView.css +12 -12
  351. package/front_end/panels/search/searchResultsPane.css +10 -10
  352. package/front_end/panels/search/searchView.css +9 -9
  353. package/front_end/panels/security/SecurityPanel.ts +84 -54
  354. package/front_end/panels/security/mainView.css +26 -26
  355. package/front_end/panels/security/originView.css +15 -15
  356. package/front_end/panels/sensors/locationsSettingsTab.css +6 -6
  357. package/front_end/panels/sensors/sensors.css +28 -28
  358. package/front_end/panels/settings/components/syncSection.css +5 -5
  359. package/front_end/panels/settings/emulation/components/userAgentClientHintsForm.css +13 -13
  360. package/front_end/panels/settings/emulation/devicesSettingsTab.css +16 -16
  361. package/front_end/panels/settings/frameworkIgnoreListSettingsTab.css +2 -2
  362. package/front_end/panels/settings/keybindsSettingsTab.css +2 -2
  363. package/front_end/panels/settings/settingsScreen.css +5 -5
  364. package/front_end/panels/sources/UISourceCodeFrame.ts +1 -1
  365. package/front_end/panels/sources/breakpointEditDialog.css +9 -9
  366. package/front_end/panels/sources/breakpointsView.css +25 -25
  367. package/front_end/panels/sources/callStackSidebarPane.css +10 -10
  368. package/front_end/panels/sources/components/HeadersView.css +6 -6
  369. package/front_end/panels/sources/debuggerPausedMessage.css +4 -4
  370. package/front_end/panels/sources/dialog.css +2 -2
  371. package/front_end/panels/sources/navigatorTree.css +2 -2
  372. package/front_end/panels/sources/navigatorView.css +2 -2
  373. package/front_end/panels/sources/scopeChainSidebarPane.css +1 -1
  374. package/front_end/panels/sources/sourcesNavigator.css +1 -1
  375. package/front_end/panels/sources/sourcesPanel.css +2 -2
  376. package/front_end/panels/sources/sourcesView.css +1 -1
  377. package/front_end/panels/sources/threadsSidebarPane.css +5 -5
  378. package/front_end/panels/sources/watchExpressionsSidebarPane.css +8 -8
  379. package/front_end/panels/timeline/TimelineDetailsView.ts +9 -21
  380. package/front_end/panels/timeline/TimelineFlameChartView.ts +3 -5
  381. package/front_end/panels/timeline/TimelineMiniMap.ts +3 -3
  382. package/front_end/panels/timeline/components/LiveMetricsView.ts +1 -1
  383. package/front_end/panels/timeline/components/breadcrumbsUI.css +3 -3
  384. package/front_end/panels/timeline/components/exportTraceOptions.css +1 -1
  385. package/front_end/panels/timeline/components/fieldSettingsDialog.css +13 -13
  386. package/front_end/panels/timeline/components/ignoreListSetting.css +3 -3
  387. package/front_end/panels/timeline/components/liveMetricsView.css +39 -39
  388. package/front_end/panels/timeline/components/metricCard.css +20 -20
  389. package/front_end/panels/timeline/components/networkRequestDetails.css +9 -9
  390. package/front_end/panels/timeline/components/networkRequestTooltip.css +14 -14
  391. package/front_end/panels/timeline/components/networkTrackWidget.css +2 -2
  392. package/front_end/panels/timeline/components/originMap.css +4 -4
  393. package/front_end/panels/timeline/components/relatedInsightChips.css +1 -1
  394. package/front_end/panels/timeline/components/sidebarAnnotationsTab.css +4 -4
  395. package/front_end/panels/timeline/components/sidebarInsightsTab.css +5 -5
  396. package/front_end/panels/timeline/components/sidebarSingleInsightSet.css +1 -1
  397. package/front_end/panels/timeline/components/timelineSummary.css +4 -4
  398. package/front_end/panels/timeline/overlays/OverlaysImpl.ts +4 -4
  399. package/front_end/panels/timeline/overlays/components/EntriesLinkOverlay.ts +1 -1
  400. package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +6 -6
  401. package/front_end/panels/timeline/overlays/components/TimeRangeOverlay.ts +1 -1
  402. package/front_end/panels/timeline/thirdPartyTreeView.css +5 -5
  403. package/front_end/panels/timeline/timeline-meta.ts +0 -6
  404. package/front_end/panels/timeline/timelineDetailsView.css +11 -11
  405. package/front_end/panels/timeline/timelinePanel.css +20 -20
  406. package/front_end/panels/timeline/timelineTreeView.css +8 -8
  407. package/front_end/panels/webauthn/webauthnPane.css +6 -6
  408. package/front_end/panels/whats_new/ReleaseNoteText.ts +2 -2
  409. package/front_end/third_party/chromium/README.chromium +1 -1
  410. package/front_end/third_party/i18n/i18n-impl.ts +1 -1
  411. package/front_end/third_party/puppeteer/README.chromium +2 -2
  412. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +15 -1
  413. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +42 -8
  414. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Frame.d.ts +4 -0
  415. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Frame.d.ts.map +1 -1
  416. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Frame.js +15 -2
  417. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Frame.js.map +1 -1
  418. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/WebMCP.d.ts +14 -1
  419. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/WebMCP.d.ts.map +1 -1
  420. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/WebMCP.js +23 -1
  421. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/WebMCP.js.map +1 -1
  422. package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.d.ts +1 -1
  423. package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.d.ts.map +1 -1
  424. package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.js +1 -1
  425. package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.js.map +1 -1
  426. package/front_end/third_party/puppeteer/package/lib/puppeteer/injected/Poller.d.ts.map +1 -1
  427. package/front_end/third_party/puppeteer/package/lib/puppeteer/injected/Poller.js +77 -6
  428. package/front_end/third_party/puppeteer/package/lib/puppeteer/injected/Poller.js.map +1 -1
  429. package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.d.ts +3 -3
  430. package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.js +3 -3
  431. package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.js.map +1 -1
  432. package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.d.ts +1 -1
  433. package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.js +1 -1
  434. package/front_end/third_party/puppeteer/package/lib/types.d.ts +15 -1
  435. package/front_end/third_party/puppeteer/package/package.json +2 -2
  436. package/front_end/third_party/puppeteer/package/src/cdp/Frame.ts +16 -2
  437. package/front_end/third_party/puppeteer/package/src/cdp/WebMCP.ts +36 -1
  438. package/front_end/third_party/puppeteer/package/src/generated/injected.ts +1 -1
  439. package/front_end/third_party/puppeteer/package/src/injected/Poller.ts +86 -6
  440. package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
  441. package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
  442. package/front_end/third_party/web-vitals/README.chromium +2 -2
  443. package/front_end/third_party/web-vitals/package/README.md +22 -7
  444. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onINP.js +6 -2
  445. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onLCP.d.ts +2 -2
  446. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onLCP.js +30 -3
  447. package/front_end/third_party/web-vitals/package/dist/modules/lib/InteractionManager.d.ts +14 -0
  448. package/front_end/third_party/web-vitals/package/dist/modules/lib/InteractionManager.js +19 -13
  449. package/front_end/third_party/web-vitals/package/dist/modules/lib/bindReporter.d.ts +1 -1
  450. package/front_end/third_party/web-vitals/package/dist/modules/lib/doubleRAF.js +1 -1
  451. package/front_end/third_party/web-vitals/package/dist/modules/lib/initMetric.d.ts +3 -3
  452. package/front_end/third_party/web-vitals/package/dist/modules/lib/softNavs.js +3 -1
  453. package/front_end/third_party/web-vitals/package/dist/modules/types/lcp.d.ts +15 -1
  454. package/front_end/third_party/web-vitals/package/package.json +1 -2
  455. package/front_end/third_party/web-vitals/package/src/attribution/onINP.ts +9 -2
  456. package/front_end/third_party/web-vitals/package/src/attribution/onLCP.ts +36 -5
  457. package/front_end/third_party/web-vitals/package/src/lib/InteractionManager.ts +21 -15
  458. package/front_end/third_party/web-vitals/package/src/lib/doubleRAF.ts +1 -1
  459. package/front_end/third_party/web-vitals/package/src/lib/softNavs.ts +4 -1
  460. package/front_end/third_party/web-vitals/package/src/types/lcp.ts +16 -1
  461. package/front_end/third_party/web-vitals/rebuild.sh +3 -3
  462. package/front_end/ui/comments/CommentAnchorResolver.ts +15 -4
  463. package/front_end/ui/comments/commentsOverlay.css +6 -5
  464. package/front_end/ui/components/adorners/Adorner.ts +1 -1
  465. package/front_end/ui/components/adorners/adorner.css +6 -6
  466. package/front_end/ui/components/buttons/FloatingButton.ts +1 -1
  467. package/front_end/ui/components/buttons/button.css +9 -9
  468. package/front_end/ui/components/buttons/floatingButton.css +2 -2
  469. package/front_end/ui/components/buttons/textButton.css +12 -12
  470. package/front_end/ui/components/dialogs/Dialog.ts +1 -1
  471. package/front_end/ui/components/dialogs/dialog.css +1 -1
  472. package/front_end/ui/components/diff_view/diffView.css +3 -3
  473. package/front_end/ui/components/expandable_list/expandableList.css +9 -9
  474. package/front_end/ui/components/highlighting/HighlightElement.ts +1 -1
  475. package/front_end/ui/components/highlighting/HighlightManager.ts +4 -0
  476. package/front_end/ui/components/icon_button/iconButton.css +2 -2
  477. package/front_end/ui/components/input/checkbox.css +8 -8
  478. package/front_end/ui/components/input/textInput.css +3 -3
  479. package/front_end/ui/components/issue_counter/issueLinkIcon.css +2 -2
  480. package/front_end/ui/components/linkifier/linkifierImpl.css +1 -1
  481. package/front_end/ui/components/markdown_view/MarkdownImagesMap.ts +1 -1
  482. package/front_end/ui/components/markdown_view/MarkdownLinksMap.ts +1 -1
  483. package/front_end/ui/components/markdown_view/codeBlock.css +2 -2
  484. package/front_end/ui/components/markdown_view/markdownView.css +7 -7
  485. package/front_end/ui/components/menus/menuGroup.css +2 -2
  486. package/front_end/ui/components/menus/menuItem.css +2 -2
  487. package/front_end/ui/components/menus/selectMenu.css +2 -2
  488. package/front_end/ui/components/menus/selectMenuButton.css +4 -4
  489. package/front_end/ui/components/panel_feedback/panelFeedback.css +15 -15
  490. package/front_end/ui/components/panel_feedback/previewToggle.css +2 -2
  491. package/front_end/ui/components/panel_introduction_steps/panelIntroductionSteps.css +7 -7
  492. package/front_end/ui/components/report_view/report.css +3 -3
  493. package/front_end/ui/components/report_view/reportSectionDivider.css +1 -1
  494. package/front_end/ui/components/report_view/reportValue.css +1 -1
  495. package/front_end/ui/components/request_link_icon/requestLinkIcon.css +2 -2
  496. package/front_end/ui/components/settings/settingCheckbox.css +6 -6
  497. package/front_end/ui/components/text_editor/TextEditor.ts +3 -1
  498. package/front_end/ui/components/text_editor/config.ts +16 -4
  499. package/front_end/ui/kit/icons/icon.css +4 -4
  500. package/front_end/ui/kit/link/link.css +1 -1
  501. package/front_end/ui/legacy/ActionRegistration.ts +23 -23
  502. package/front_end/ui/legacy/Dialog.ts +1 -1
  503. package/front_end/ui/legacy/DockController.ts +3 -3
  504. package/front_end/ui/legacy/EmptyWidget.ts +13 -34
  505. package/front_end/ui/legacy/FilterBar.ts +4 -4
  506. package/front_end/ui/legacy/Infobar.ts +2 -2
  507. package/front_end/ui/legacy/InspectorDrawerView.ts +6 -6
  508. package/front_end/ui/legacy/InspectorView.ts +19 -26
  509. package/front_end/ui/legacy/ListWidget.ts +7 -7
  510. package/front_end/ui/legacy/PlusButton.ts +1 -3
  511. package/front_end/ui/legacy/RemoteDebuggingTerminatedScreen.ts +6 -6
  512. package/front_end/ui/legacy/SearchableView.ts +16 -16
  513. package/front_end/ui/legacy/SoftContextMenu.ts +8 -8
  514. package/front_end/ui/legacy/SoftDropDown.ts +1 -1
  515. package/front_end/ui/legacy/SuggestBox.ts +2 -2
  516. package/front_end/ui/legacy/TabbedPane.ts +10 -10
  517. package/front_end/ui/legacy/TargetCrashedScreen.ts +2 -2
  518. package/front_end/ui/legacy/Toolbar.ts +5 -5
  519. package/front_end/ui/legacy/Treeoutline.ts +1 -1
  520. package/front_end/ui/legacy/UIUtils.ts +80 -20
  521. package/front_end/ui/legacy/ViewManager.ts +1 -1
  522. package/front_end/ui/legacy/ViewRegistration.ts +7 -7
  523. package/front_end/ui/legacy/Widget.ts +5 -5
  524. package/front_end/ui/legacy/checkboxTextLabel.css +3 -3
  525. package/front_end/ui/legacy/components/color_picker/ColorFormatSpec.ts +16 -0
  526. package/front_end/ui/legacy/components/color_picker/FormatPickerContextMenu.ts +1 -0
  527. package/front_end/ui/legacy/components/color_picker/spectrum.css +90 -90
  528. package/front_end/ui/legacy/components/cookie_table/cookiesTable.css +1 -1
  529. package/front_end/ui/legacy/components/data_grid/DataGrid.ts +26 -28
  530. package/front_end/ui/legacy/components/data_grid/ShowMoreDataGridNode.ts +3 -7
  531. package/front_end/ui/legacy/components/inline_editor/bezierEditor.css +13 -13
  532. package/front_end/ui/legacy/components/inline_editor/colorSwatch.css +7 -7
  533. package/front_end/ui/legacy/components/inline_editor/cssAngleEditor.css +5 -5
  534. package/front_end/ui/legacy/components/inline_editor/cssShadowEditor.css +18 -18
  535. package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +104 -86
  536. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +8 -6
  537. package/front_end/ui/legacy/components/object_ui/objectPopover.css +4 -4
  538. package/front_end/ui/legacy/components/object_ui/objectPropertiesSection.css +6 -6
  539. package/front_end/ui/legacy/components/perf_ui/ChartViewport.ts +28 -11
  540. package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +0 -4
  541. package/front_end/ui/legacy/components/perf_ui/chartViewport.css +4 -4
  542. package/front_end/ui/legacy/components/perf_ui/filmStripView.css +6 -6
  543. package/front_end/ui/legacy/components/perf_ui/flameChart.css +7 -7
  544. package/front_end/ui/legacy/components/perf_ui/overviewGrid.css +11 -11
  545. package/front_end/ui/legacy/components/perf_ui/pieChart.css +6 -6
  546. package/front_end/ui/legacy/components/perf_ui/timelineGrid.css +5 -5
  547. package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +3 -3
  548. package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +1 -1
  549. package/front_end/ui/legacy/components/source_frame/imageView.css +1 -1
  550. package/front_end/ui/legacy/components/source_frame/jsonView.css +1 -1
  551. package/front_end/ui/legacy/components/source_frame/resourceSourceFrame.css +1 -1
  552. package/front_end/ui/legacy/components/source_frame/xmlTree.css +3 -3
  553. package/front_end/ui/legacy/components/utils/imagePreview.css +1 -1
  554. package/front_end/ui/legacy/components/utils/jsUtils.css +10 -10
  555. package/front_end/ui/legacy/dropTarget.css +2 -2
  556. package/front_end/ui/legacy/emptyWidget.css +6 -0
  557. package/front_end/ui/legacy/filter.css +19 -19
  558. package/front_end/ui/legacy/infobar.css +2 -2
  559. package/front_end/ui/legacy/inspectorCommon.css +67 -67
  560. package/front_end/ui/legacy/inspectorDrawerTabbedPane.css +1 -1
  561. package/front_end/ui/legacy/listWidget.css +5 -5
  562. package/front_end/ui/legacy/progressIndicator.css +4 -4
  563. package/front_end/ui/legacy/reportView.css +7 -7
  564. package/front_end/ui/legacy/searchableView.css +5 -5
  565. package/front_end/ui/legacy/smallBubble.css +3 -3
  566. package/front_end/ui/legacy/softContextMenu.css +4 -4
  567. package/front_end/ui/legacy/softDropDownButton.css +1 -1
  568. package/front_end/ui/legacy/splitWidget.css +9 -31
  569. package/front_end/ui/legacy/suggestBox.css +4 -4
  570. package/front_end/ui/legacy/tabbedPane.css +17 -17
  571. package/front_end/ui/legacy/textPrompt.css +2 -2
  572. package/front_end/ui/legacy/toolbar.css +4 -4
  573. package/front_end/ui/legacy/treeoutline.css +14 -14
  574. package/front_end/ui/legacy/viewContainers.css +6 -6
  575. package/front_end/ui/settings/ConsoleSettings.ts +34 -0
  576. package/front_end/ui/visual_logging/KnownContextValues.ts +12 -0
  577. package/inspector_overlay/common.ts +12 -12
  578. package/inspector_overlay/css_grid_label_helpers.ts +16 -17
  579. package/inspector_overlay/drag_resize_handler.ts +2 -2
  580. package/inspector_overlay/highlight_common.ts +11 -13
  581. package/inspector_overlay/highlight_container_query.ts +2 -2
  582. package/inspector_overlay/highlight_flex_common.ts +6 -7
  583. package/inspector_overlay/highlight_grid_common.ts +3 -3
  584. package/inspector_overlay/highlight_isolated_element.ts +12 -3
  585. package/inspector_overlay/highlight_scroll_snap.ts +2 -2
  586. package/inspector_overlay/loadCSS.rollup.js +0 -1
  587. package/inspector_overlay/testing/InspectorOverlayHelpers.ts +13 -13
  588. package/inspector_overlay/tool_green_dev_anchors.ts +3 -3
  589. package/inspector_overlay/tool_highlight.ts +9 -9
  590. package/inspector_overlay/tool_paused.ts +4 -4
  591. package/inspector_overlay/tool_persistent.ts +11 -11
  592. package/inspector_overlay/tool_screenshot.ts +7 -7
  593. package/inspector_overlay/tool_source_order.ts +4 -4
  594. package/inspector_overlay/tool_viewport_size.ts +3 -3
  595. package/inspector_overlay/tool_window_controls.ts +4 -4
  596. package/mcp/mcp.ts +1 -0
  597. package/package.json +2 -2
  598. package/front_end/generated/protocol-tsconfig.json +0 -10
  599. package/front_end/panels/js_timeline/DIR_METADATA +0 -3
  600. package/front_end/panels/js_timeline/js_timeline-meta.ts +0 -193
  601. package/front_end/panels/js_timeline/js_timeline.ts +0 -1
  602. /package/front_end/entrypoints/{formatter_worker/FormatterActions.ts → formatter_actions/formatter_actions.ts} +0 -0
@@ -40,7 +40,7 @@ import * as Lit from '../../ui/lit/lit.js';
40
40
  import * as VisualElements from '../../ui/visual_logging/visual_logging.js';
41
41
 
42
42
  import * as ElementsComponents from './components/components.js';
43
- import {adornerRef, ElementsTreeElement} from './ElementsTreeElement.js';
43
+ import {adornerRef, ElementsTreeElement, handleAdornerKeydown} from './ElementsTreeElement.js';
44
44
  import {ElementsTreeOutline} from './ElementsTreeOutline.js';
45
45
 
46
46
  const {html, render} = Lit;
@@ -66,10 +66,13 @@ export const DEFAULT_VIEW = (input: ViewInput, _output: undefined, target: HTMLE
66
66
  <span class="elements-tree-shortcut-title">\u21AA ${input.title}</span>
67
67
  <devtools-adorner
68
68
  .name=${ElementsComponents.AdornerManager.RegisteredAdorners.REVEAL}
69
- class="adorner-reveal"
70
- jslog=${VisualElements.adorner('reveal')}
69
+ class="adorner-reveal clickable"
70
+ role=button
71
+ tabindex=0
72
+ jslog=${VisualElements.adorner('reveal').track({click: true})}
71
73
  aria-label=${i18nString(UIStrings.reveal)}
72
74
  @click=${input.onRevealAdornerClick}
75
+ @keydown=${handleAdornerKeydown(input.onRevealAdornerClick)}
73
76
  @mousedown=${(e: Event) => e.consume()}
74
77
  ${adornerRef()}>
75
78
  <span class="adorner-with-icon">
@@ -124,6 +124,10 @@ const UIStrings = {
124
124
  * @description Accessibility label for the button that collapses an expanded CSS rule in the Styles tab.
125
125
  */
126
126
  collapseExpandedRule: 'Collapse expanded rule',
127
+ /**
128
+ * @description Text displayed next to a CSS rule that was previously matched but no longer is.
129
+ */
130
+ notMatching: 'This rule doesn’t currently match the selected element',
127
131
  } as const;
128
132
 
129
133
  const str_ = i18n.i18n.registerUIStrings('panels/elements/StylePropertiesSection.ts', UIStrings);
@@ -149,7 +153,7 @@ export interface ActiveAiSuggestion {
149
153
  export class StylePropertiesSection {
150
154
  protected stylesContainer: StylesContainer;
151
155
  styleInternal: SDK.CSSStyleDeclaration.CSSStyleDeclaration;
152
- readonly matchedStyles: SDK.CSSMatchedStyles.CSSMatchedStyles;
156
+ matchedStyles: SDK.CSSMatchedStyles.CSSMatchedStyles;
153
157
  private computedStyles: Map<string, string>|null;
154
158
  private parentsComputedStyles: Map<string, string>|null;
155
159
  private computedStyleExtraFields: Protocol.CSS.ComputedStyleExtraFields|null;
@@ -191,17 +195,21 @@ export class StylePropertiesSection {
191
195
 
192
196
  private ghostStyleTreeElements: GhostStylePropertyTreeElement[] = [];
193
197
  #activeAiSuggestion?: ActiveAiSuggestion;
194
-
195
- constructor(
196
- stylesContainer: StylesContainer, matchedStyles: SDK.CSSMatchedStyles.CSSMatchedStyles,
197
- style: SDK.CSSStyleDeclaration.CSSStyleDeclaration, sectionIdx: number, computedStyles: Map<string, string>|null,
198
- parentsComputedStyles: Map<string, string>|null,
199
- computedStyleExtraFields: Protocol.CSS.ComputedStyleExtraFields|null, customHeaderText?: string) {
198
+ #isInactive = false;
199
+ #manuallyCollapsed = false;
200
+ #statusElement: Icon|undefined;
201
+ #lastInheritedNode: SDK.DOMModel.DOMNode|null = null;
202
+
203
+ constructor(stylesContainer: StylesContainer, matchedStyles: SDK.CSSMatchedStyles.CSSMatchedStyles,
204
+ style: SDK.CSSStyleDeclaration.CSSStyleDeclaration, sectionIdx: number,
205
+ computedStyles: Map<string, string>|null, parentsComputedStyles: Map<string, string>|null,
206
+ computedStyleExtraFields: Protocol.CSS.ComputedStyleExtraFields|null, customHeaderText?: string) {
200
207
  this.#customHeaderText = customHeaderText;
201
208
  this.stylesContainer = stylesContainer;
202
209
  this.sectionIdx = sectionIdx;
203
210
  this.styleInternal = style;
204
211
  this.matchedStyles = matchedStyles;
212
+ this.#lastInheritedNode = matchedStyles.isInherited(style) ? matchedStyles.nodeForStyle(style) : null;
205
213
  this.computedStyles = computedStyles;
206
214
  this.parentsComputedStyles = parentsComputedStyles;
207
215
  this.computedStyleExtraFields = computedStyleExtraFields;
@@ -283,6 +291,9 @@ export class StylePropertiesSection {
283
291
  this.selectorElement.addEventListener('mouseleave', this.onMouseOutSelector.bind(this), false);
284
292
  this.#specificityTooltips = selectorContainer.createChild('span');
285
293
 
294
+ this.#statusElement = createIcon('warning', 'styles-section-status hidden medium');
295
+ selectorContainer.appendChild(this.#statusElement);
296
+
286
297
  // We only add braces for style rules with selectors and non-style rules, which create their own sections.
287
298
  if (headerText.length > 0 || !(rule instanceof SDK.CSSRule.CSSStyleRule)) {
288
299
  const openBrace = selectorContainer.createChild('span', 'sidebar-pane-open-brace');
@@ -384,6 +395,42 @@ export class StylePropertiesSection {
384
395
  return this.sectionIdx;
385
396
  }
386
397
 
398
+ setInactive(inactive: boolean): void {
399
+ const wasInactive = this.#isInactive;
400
+ this.#isInactive = inactive;
401
+ this.element.classList.toggle('styles-section-inactive', inactive);
402
+ this.propertiesTreeOutline.element.classList.toggle('styles-section-inactive', inactive);
403
+ if (this.#statusElement) {
404
+ this.#statusElement.classList.toggle('hidden', !inactive);
405
+ this.#statusElement.title = inactive ? i18nString(UIStrings.notMatching) : '';
406
+ }
407
+ this.markSelectorMatches();
408
+ if (wasInactive !== inactive) {
409
+ this.updateCollapsedState();
410
+ }
411
+ }
412
+
413
+ isInactive(): boolean {
414
+ return this.#isInactive;
415
+ }
416
+
417
+ rebuildWithPayload(matchedStyles: SDK.CSSMatchedStyles.CSSMatchedStyles,
418
+ style: SDK.CSSStyleDeclaration.CSSStyleDeclaration, computedStyles: Map<string, string>|null,
419
+ parentsComputedStyles: Map<string, string>|null,
420
+ computedStyleExtraFields: Protocol.CSS.ComputedStyleExtraFields|null): void {
421
+ this.matchedStyles = matchedStyles;
422
+ this.styleInternal = style;
423
+ this.computedStyles = computedStyles;
424
+ this.parentsComputedStyles = parentsComputedStyles;
425
+ this.computedStyleExtraFields = computedStyleExtraFields;
426
+ this.#lastInheritedNode = matchedStyles.isInherited(style) ? matchedStyles.nodeForStyle(style) : null;
427
+ this.update(true);
428
+ }
429
+
430
+ inheritedNode(): SDK.DOMModel.DOMNode|null {
431
+ return this.#lastInheritedNode;
432
+ }
433
+
387
434
  treeScopeDistance(): number {
388
435
  const treeScope = this.styleInternal.parentRule?.treeScope;
389
436
  if (!treeScope) {
@@ -1380,6 +1427,10 @@ export class StylePropertiesSection {
1380
1427
  return false;
1381
1428
  }
1382
1429
 
1430
+ if (this.#isInactive) {
1431
+ return true;
1432
+ }
1433
+
1383
1434
  const style = this.styleInternal;
1384
1435
  const properties = style.leadingProperties();
1385
1436
 
@@ -1407,10 +1458,15 @@ export class StylePropertiesSection {
1407
1458
  }
1408
1459
 
1409
1460
  updateCollapsedState(): void {
1461
+ if (this.#manuallyCollapsed) {
1462
+ // Preserve user action if they have manually toggled the collapse state.
1463
+ return;
1464
+ }
1410
1465
  const shouldCollapse = this.#shouldCollapse();
1411
1466
  // Mark as collapsible so the toggle icon is always shown for
1412
1467
  // sections that can be collapsed, even after manual expansion.
1413
- this.element.classList.toggle('collapsible', shouldCollapse);
1468
+ // Always make it an option to collapse inactive styles.
1469
+ this.element.classList.toggle('collapsible', shouldCollapse || this.#isInactive);
1414
1470
  this.#setCollapsed(shouldCollapse);
1415
1471
  }
1416
1472
 
@@ -1428,6 +1484,7 @@ export class StylePropertiesSection {
1428
1484
  }
1429
1485
 
1430
1486
  #toggleCollapsed(): void {
1487
+ this.#manuallyCollapsed = true;
1431
1488
  this.#setCollapsed(!this.#isCollapsed);
1432
1489
  }
1433
1490
 
@@ -3125,6 +3125,12 @@ export class StylePropertyTreeElement extends UI.TreeOutline.TreeElement {
3125
3125
  return;
3126
3126
  }
3127
3127
 
3128
+ if (this.#lazyRender) {
3129
+ this.#stylesContainer.untrackForLazyRendering(this.listItemElement);
3130
+ this.#lazyRender = false;
3131
+ this.updateTitle();
3132
+ }
3133
+
3128
3134
  const selectedElement = context.isEditingName ? this.nameElement : this.valueElement;
3129
3135
  if (!selectedElement) {
3130
3136
  return;
@@ -210,7 +210,9 @@ export class StylesSidebarPane extends Common.ObjectWrapper.eventMixin<EventType
210
210
  private isActivePropertyHighlighted = false;
211
211
  private initialUpdateCompleted = false;
212
212
  hasMatchedStyles = false;
213
- private sectionBlocks: SectionBlock[] = [];
213
+ sectionBlocks: SectionBlock[] = [];
214
+ #allKnownBlocks = new Map<string, SectionBlock>();
215
+ #lastNode: SDK.DOMModel.DOMNode|null = null;
214
216
  private idleCallbackManager: IdleCallbackManager|null = null;
215
217
  private needsForceUpdate = false;
216
218
  private isSuppressingResets = false;
@@ -247,6 +249,9 @@ export class StylesSidebarPane extends Common.ObjectWrapper.eventMixin<EventType
247
249
  Common.Settings.Settings.instance()
248
250
  .moduleSetting('collapse-non-contributing-css-rules')
249
251
  .addChangeListener(this.updateCollapsedSectionsSetting, this);
252
+ Common.Settings.Settings.instance()
253
+ .moduleSetting('show-inactive-css-rules')
254
+ .addChangeListener(this.requestUpdate, this);
250
255
  this.toolbarPaneElement = this.createStylesSidebarToolbar();
251
256
  this.noMatchesElement = this.contentElement.createChild('div', 'gray-info-message hidden');
252
257
  this.noMatchesElement.textContent = i18nString(UIStrings.noMatchingSelectorOrStyle);
@@ -562,6 +567,8 @@ export class StylesSidebarPane extends Common.ObjectWrapper.eventMixin<EventType
562
567
  section.update(section === editedSection);
563
568
  }
564
569
 
570
+ this.#performSyncViewportCheck();
571
+
565
572
  if (this.#filterRegex) {
566
573
  this.updateFilter();
567
574
  }
@@ -1009,9 +1016,15 @@ export class StylesSidebarPane extends Common.ObjectWrapper.eventMixin<EventType
1009
1016
 
1010
1017
  this.#elementsForSyncViewportCheck = [];
1011
1018
  this.linkifier.reset();
1019
+ const node = this.node();
1020
+ if (this.#lastNode !== node) {
1021
+ // Clear inactive styles when a different node is selected.
1022
+ this.#allKnownBlocks.clear();
1023
+ this.#lastNode = node;
1024
+ }
1025
+
1012
1026
  const prevSections = this.sectionBlocks.map(block => block.sections).flat();
1013
1027
 
1014
- const node = this.node();
1015
1028
  this.hasMatchedStyles = matchedStyles !== null && node !== null;
1016
1029
  if (!this.hasMatchedStyles) {
1017
1030
  this.sectionBlocks = [];
@@ -1103,6 +1116,36 @@ export class StylesSidebarPane extends Common.ObjectWrapper.eventMixin<EventType
1103
1116
  this.matchedStyles = matchedStyles;
1104
1117
  }
1105
1118
 
1119
+ setNodeForTest(node: SDK.DOMModel.DOMNode): void {
1120
+ if (this.#lastNode !== node) {
1121
+ this.#allKnownBlocks.clear();
1122
+ this.#lastNode = node;
1123
+ }
1124
+ }
1125
+
1126
+ private getStyleId(style: SDK.CSSStyleDeclaration.CSSStyleDeclaration): string {
1127
+ if (style.range) {
1128
+ return `${style.styleSheetId || ''}:${style.range.toString()}`;
1129
+ }
1130
+ if (style.type === SDK.CSSStyleDeclaration.Type.Inline || style.type === SDK.CSSStyleDeclaration.Type.Attributes) {
1131
+ return style.type;
1132
+ }
1133
+ if (style.type === SDK.CSSStyleDeclaration.Type.Animation) {
1134
+ return `${style.type}:${style.animationName() || ''}:${style.cssText}`;
1135
+ }
1136
+ const parentRule = style.parentRule;
1137
+ if (parentRule instanceof SDK.CSSRule.CSSStyleRule) {
1138
+ return `${style.type}:${parentRule.selectorText()}`;
1139
+ }
1140
+ if (parentRule instanceof SDK.CSSRule.CSSKeyframeRule) {
1141
+ return `${style.type}:${parentRule.parentRuleName()}:${parentRule.key().text}`;
1142
+ }
1143
+ if (parentRule instanceof SDK.CSSRule.CSSPropertyRule) {
1144
+ return `${style.type}:${parentRule.propertyName().text}`;
1145
+ }
1146
+ return `${style.type}:${style.cssText}`;
1147
+ }
1148
+
1106
1149
  rebuildSectionsForMatchedStyleRulesForTest(matchedStyles: SDK.CSSMatchedStyles.CSSMatchedStyles,
1107
1150
  computedStyles: Map<string, string>|null,
1108
1151
  parentsComputedStyles: Map<string, string>|null,
@@ -1128,7 +1171,7 @@ export class StylesSidebarPane extends Common.ObjectWrapper.eventMixin<EventType
1128
1171
  let sectionIdx = 0;
1129
1172
  let lastParentNode: SDK.DOMModel.DOMNode|null = null;
1130
1173
 
1131
- let lastLayerParent: SectionBlock|undefined;
1174
+ let lastLayerParent: SectionBlock|undefined = blocks[0];
1132
1175
  let lastLayers: SDK.CSSLayer.CSSLayer[]|null = null;
1133
1176
  let sawLayers = false;
1134
1177
 
@@ -1160,12 +1203,15 @@ export class StylesSidebarPane extends Common.ObjectWrapper.eventMixin<EventType
1160
1203
  // Always render eagerly for layout tests.
1161
1204
  this.#shouldRenderLazily = !Host.InspectorFrontendHost.isUnderTest() && totalProperties > LAZY_RENDER_THRESHOLD;
1162
1205
 
1163
- for (const style of matchedStyles.nodeStyles()) {
1206
+ const activeStyles = matchedStyles.nodeStyles().filter(style => {
1207
+ const isTransitionOrAnimationStyle = style.type === SDK.CSSStyleDeclaration.Type.Transition ||
1208
+ style.type === SDK.CSSStyleDeclaration.Type.Animation;
1209
+ return !isTransitionOrAnimationStyle || animationsPanelVisible || !cssAnimationsOnlyWhenAnimationsTabOpen;
1210
+ });
1211
+
1212
+ for (const style of activeStyles) {
1164
1213
  const isTransitionOrAnimationStyle = style.type === SDK.CSSStyleDeclaration.Type.Transition ||
1165
1214
  style.type === SDK.CSSStyleDeclaration.Type.Animation;
1166
- if (isTransitionOrAnimationStyle && cssAnimationsOnlyWhenAnimationsTabOpen && !animationsPanelVisible) {
1167
- continue;
1168
- }
1169
1215
 
1170
1216
  const parentNode = matchedStyles.isInherited(style) ? matchedStyles.nodeForStyle(style) : null;
1171
1217
  if (parentNode && parentNode !== lastParentNode) {
@@ -1355,7 +1401,59 @@ export class StylesSidebarPane extends Common.ObjectWrapper.eventMixin<EventType
1355
1401
 
1356
1402
  await this.idleCallbackManager.awaitDone();
1357
1403
 
1358
- return blocks;
1404
+ const showInactiveCSSRules = Common.Settings.Settings.instance().moduleSetting('show-inactive-css-rules').get();
1405
+ if (!showInactiveCSSRules) {
1406
+ return blocks;
1407
+ }
1408
+
1409
+ return this.mergeInactiveStyles(blocks);
1410
+ }
1411
+
1412
+ private computeBlockIds(blocks: SectionBlock[]): Map<SectionBlock, string> {
1413
+ let nullBlockCounter = 0;
1414
+ const blockIds = new Map<SectionBlock, string>();
1415
+ for (const block of blocks) {
1416
+ blockIds.set(block, block.titleElement()?.textContent || `MAIN_BLOCK_NULL_${nullBlockCounter++}`);
1417
+ }
1418
+ return blockIds;
1419
+ }
1420
+
1421
+ private mergeInactiveStyles(blocks: SectionBlock[]): SectionBlock[] {
1422
+ const blockIds = this.computeBlockIds(blocks);
1423
+ for (const [id, block] of this.#allKnownBlocks) {
1424
+ if (!blockIds.has(block)) {
1425
+ blockIds.set(block, id);
1426
+ }
1427
+ }
1428
+ const getBlockId = (block: SectionBlock): string => blockIds.get(block) || 'UNKNOWN_BLOCK';
1429
+
1430
+ for (const block of blocks) {
1431
+ const bid = getBlockId(block);
1432
+ const knownBlock = this.#allKnownBlocks.get(bid);
1433
+ if (knownBlock) {
1434
+ block.sections = mergeOrderedItems(
1435
+ knownBlock.sections,
1436
+ block.sections,
1437
+ section => this.getStyleId(section.styleInternal),
1438
+ section => section.setInactive(true),
1439
+ );
1440
+ }
1441
+ }
1442
+
1443
+ const oldBlocks = Array.from(this.#allKnownBlocks.values());
1444
+ const finalBlocks = mergeOrderedItems(
1445
+ oldBlocks,
1446
+ blocks,
1447
+ getBlockId,
1448
+ block => block.sections.forEach(section => section.setInactive(true)),
1449
+ );
1450
+
1451
+ this.#allKnownBlocks.clear();
1452
+ for (const block of finalBlocks) {
1453
+ this.#allKnownBlocks.set(getBlockId(block), block);
1454
+ }
1455
+
1456
+ return finalBlocks;
1359
1457
  }
1360
1458
 
1361
1459
  async createNewRuleInViaInspectorStyleSheet(): Promise<void> {
@@ -2592,6 +2690,43 @@ export function escapeUrlAsCssComment(urlText: string): string {
2592
2690
  return url.toString();
2593
2691
  }
2594
2692
 
2693
+ /**
2694
+ * Merges a newly active list of items with an existing (previously known) list of items,
2695
+ * preserving the relative order of inactive items while updating and inserting active items.
2696
+ */
2697
+ export function mergeOrderedItems<T>(
2698
+ oldItems: T[],
2699
+ newItems: T[],
2700
+ getId: (item: T) => string,
2701
+ markInactive: (item: T) => void,
2702
+ ): T[] {
2703
+ const newIds = new Set(newItems.map(getId));
2704
+ const merged: T[] = [];
2705
+ let newIdx = 0;
2706
+
2707
+ for (const oldItem of oldItems) {
2708
+ const oldId = getId(oldItem);
2709
+ if (newIds.has(oldId)) {
2710
+ while (newIdx < newItems.length) {
2711
+ const newItem = newItems[newIdx++];
2712
+ merged.push(newItem);
2713
+ if (getId(newItem) === oldId) {
2714
+ break;
2715
+ }
2716
+ }
2717
+ } else {
2718
+ markInactive(oldItem);
2719
+ merged.push(oldItem);
2720
+ }
2721
+ }
2722
+
2723
+ while (newIdx < newItems.length) {
2724
+ merged.push(newItems[newIdx++]);
2725
+ }
2726
+
2727
+ return merged;
2728
+ }
2729
+
2595
2730
  export class ActionDelegate implements UI.ActionRegistration.ActionDelegate {
2596
2731
  handleAction(_context: UI.Context.Context, actionId: string): boolean {
2597
2732
  switch (actionId) {
@@ -6,8 +6,8 @@
6
6
 
7
7
  .styles-element-classes-pane {
8
8
  background-color: var(--sys-color-cdt-base-container);
9
- border-bottom: 1px solid var(--sys-color-divider);
10
- padding: 6px 2px 2px;
9
+ border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
10
+ padding: var(--sys-size-4) var(--sys-size-2) var(--sys-size-2);
11
11
  }
12
12
 
13
13
  .styles-element-classes-container {
@@ -21,15 +21,15 @@
21
21
  }
22
22
 
23
23
  .styles-element-classes-pane .title-container {
24
- padding-bottom: 2px;
24
+ padding-bottom: var(--sys-size-2);
25
25
  }
26
26
 
27
27
  .styles-element-classes-pane .new-class-input {
28
28
  padding-left: 3px;
29
29
  padding-right: 3px;
30
30
  overflow: hidden;
31
- border: 1px solid var(--sys-color-neutral-outline);
32
- border-radius: 4px;
31
+ border: var(--sys-size-1) solid var(--sys-color-neutral-outline);
32
+ border-radius: var(--sys-shape-corner-extra-small);
33
33
  line-height: 15px;
34
34
  margin-left: 3px;
35
35
  width: calc(100% - 7px);
@@ -37,6 +37,6 @@
37
37
  cursor: text;
38
38
 
39
39
  &:hover {
40
- box-shadow: 0 0 0 1px var(--ref-palette-neutral90);
40
+ box-shadow: 0 0 0 var(--sys-size-1) var(--ref-palette-neutral90);
41
41
  }
42
42
  }
@@ -11,7 +11,7 @@
11
11
  .row {
12
12
  padding: 0;
13
13
  color: var(--sys-color-on-surface);
14
- padding-bottom: 16px;
14
+ padding-bottom: var(--sys-size-8);
15
15
  }
16
16
 
17
17
  .row:last-child {
@@ -19,7 +19,7 @@
19
19
  }
20
20
 
21
21
  .property {
22
- padding-bottom: 4px;
22
+ padding-bottom: var(--sys-size-3);
23
23
  white-space: nowrap;
24
24
  }
25
25
 
@@ -49,12 +49,12 @@
49
49
  }
50
50
 
51
51
  .button {
52
- border: 1px solid var(--sys-color-neutral-outline);
52
+ border: var(--sys-size-1) solid var(--sys-color-neutral-outline);
53
53
  background-color: var(--sys-color-cdt-base-container);
54
- width: 24px;
55
- height: 24px;
56
- min-width: 24px;
57
- min-height: 24px;
54
+ width: var(--sys-size-11);
55
+ height: var(--sys-size-11);
56
+ min-width: var(--sys-size-11);
57
+ min-height: var(--sys-size-11);
58
58
  padding: 0;
59
59
  margin: 0;
60
60
  display: flex;
@@ -6,7 +6,7 @@
6
6
 
7
7
  @scope to (devtools-widget > *) {
8
8
  .styles-sidebar-pane-toolbar {
9
- border-bottom: 1px solid var(--sys-color-divider);
9
+ border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
10
10
  flex-shrink: 0;
11
11
  }
12
12
 
@@ -6,22 +6,22 @@
6
6
  @scope to (devtools-widget > *) {
7
7
  .styles-element-state-pane {
8
8
  overflow: hidden;
9
- padding-left: 2px;
9
+ padding-left: var(--sys-size-2);
10
10
  background-color: var(--sys-color-cdt-base-container);
11
- border-bottom: 1px solid var(--sys-color-divider);
11
+ border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
12
12
  margin-top: 0;
13
- padding-bottom: 2px;
13
+ padding-bottom: var(--sys-size-2);
14
14
  }
15
15
 
16
16
  .styles-element-state-pane > .page-state-checkbox {
17
- margin-block: 6px;
17
+ margin-block: var(--sys-size-4);
18
18
  display: flex;
19
19
  align-items: center;
20
- gap: 2px;
20
+ gap: var(--sys-size-2);
21
21
  }
22
22
 
23
23
  .styles-element-state-pane .section-header {
24
- margin: 8px 4px 6px;
24
+ margin: var(--sys-size-5) var(--sys-size-3) var(--sys-size-4);
25
25
  color: var(--color-text-secondary);
26
26
  }
27
27
 
@@ -36,14 +36,14 @@
36
36
 
37
37
  .pseudo-states-container {
38
38
  display: grid;
39
- column-gap: 12px;
39
+ column-gap: var(--sys-size-6);
40
40
  grid-template-columns: repeat(2, 1fr);
41
41
  grid-auto-flow: row;
42
42
  }
43
43
 
44
44
  .pseudo-states-container.specific-pseudo-states {
45
45
  grid-template-columns: repeat(2, 1fr);
46
- margin-bottom: 4px;
46
+ margin-bottom: var(--sys-size-3);
47
47
  }
48
48
 
49
49
  .force-specific-element-header:focus {
@@ -225,6 +225,10 @@ const UIStrings = {
225
225
  * @description Whether CSS rules that do not apply active styles in the Styles tab are collapsed by default.
226
226
  */
227
227
  collapseNonContributingCSSRules: 'Collapse non-contributing CSS rules',
228
+ /**
229
+ * @description Title of a setting under the Elements category in Settings.
230
+ */
231
+ showInactiveCSSRules: 'Show inactive CSS rules',
228
232
  /**
229
233
  * @description Title of a setting in the Event listeners tab.
230
234
  */
@@ -642,6 +646,16 @@ Common.Settings.registerSettingExtension({
642
646
  defaultValue: false,
643
647
  });
644
648
 
649
+ Common.Settings.registerSettingExtension({
650
+ category: Common.Settings.SettingCategory.ELEMENTS,
651
+ storageType: Common.Settings.SettingStorageType.SYNCED,
652
+ order: 8,
653
+ title: i18nLazyString(UIStrings.showInactiveCSSRules),
654
+ settingName: 'show-inactive-css-rules',
655
+ settingType: Common.Settings.SettingType.BOOLEAN,
656
+ defaultValue: false,
657
+ });
658
+
645
659
  Common.Settings.registerSettingExtension({
646
660
  settingName: 'show-event-listeners-for-ancestors',
647
661
  settingType: Common.Settings.SettingType.BOOLEAN,
@@ -37,7 +37,7 @@
37
37
 
38
38
  #elements-content {
39
39
  overflow: auto;
40
- padding: 2px 0 0;
40
+ padding: var(--sys-size-2) 0 0;
41
41
  height: 100%;
42
42
  }
43
43
 
@@ -47,7 +47,7 @@
47
47
  }
48
48
 
49
49
  .style-panes-wrapper:not(.computed-styles-pane-wrapper) > div:not(:last-child) {
50
- border-bottom: 1px solid var(--sys-color-divider);
50
+ border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
51
51
  }
52
52
 
53
53
  .style-panes-wrapper > div:has(+ .ai-code-completion-summary-toolbar-container) {
@@ -71,14 +71,14 @@
71
71
 
72
72
  #elements-crumbs {
73
73
  background-color: var(--sys-color-cdt-base-container);
74
- border-top: 1px solid var(--sys-color-divider);
74
+ border-top: var(--sys-size-1) solid var(--sys-color-divider);
75
75
  overflow: hidden;
76
76
  width: 100%;
77
77
  }
78
78
 
79
79
  devtools-adorner-settings-pane {
80
80
  margin-bottom: 10px;
81
- border-bottom: 1px solid var(--sys-color-divider);
81
+ border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
82
82
  overflow: auto;
83
83
  }
84
84