chrome-devtools-frontend 1.0.938150 → 1.0.939277

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 (125) hide show
  1. package/.stylelintrc.json +15 -11
  2. package/config/gni/all_devtools_files.gni +0 -1
  3. package/config/gni/devtools_grd_files.gni +0 -1
  4. package/front_end/Images/whatsnew.avif +0 -0
  5. package/front_end/Tests.js +30 -29
  6. package/front_end/core/host/InspectorFrontendHost.ts +16 -30
  7. package/front_end/core/host/InspectorFrontendHostAPI.ts +1 -0
  8. package/front_end/core/host/UserMetrics.ts +25 -0
  9. package/front_end/core/i18n/locales/en-US.json +4 -1
  10. package/front_end/core/i18n/locales/en-XL.json +4 -1
  11. package/front_end/core/sdk/CSSModel.ts +64 -50
  12. package/front_end/core/sdk/EmulationModel.ts +11 -0
  13. package/front_end/core/sdk/sdk-meta.ts +30 -1
  14. package/front_end/entrypoints/devtools_app/devtools_app.json +0 -1
  15. package/front_end/entrypoints/inspector_main/RenderingOptions.ts +9 -2
  16. package/front_end/entrypoints/inspector_main/renderingOptions.css +2 -2
  17. package/front_end/entrypoints/main/MainImpl.ts +14 -0
  18. package/front_end/entrypoints/main/main-meta.ts +0 -2
  19. package/front_end/entrypoints/node_main/nodeConnectionsPanel.css +2 -2
  20. package/front_end/entrypoints/worker_app/worker_app.json +0 -1
  21. package/front_end/legacy_test_runner/test_runner/test_runner.js +2 -4
  22. package/front_end/models/persistence/editFileSystemView.css +1 -1
  23. package/front_end/models/persistence/workspaceSettingsTab.css +1 -1
  24. package/front_end/panels/accessibility/accessibilityNode.css +2 -2
  25. package/front_end/panels/accessibility/axBreadcrumbs.css +1 -1
  26. package/front_end/panels/animation/animationTimeline.css +5 -5
  27. package/front_end/panels/application/components/frameDetailsReportView.css +1 -1
  28. package/front_end/panels/application/resourcesPanel.css +1 -1
  29. package/front_end/panels/application/resourcesSidebar.css +1 -1
  30. package/front_end/panels/browser_debugger/browser_debugger-meta.ts +0 -3
  31. package/front_end/panels/browser_debugger/xhrBreakpointsSidebarPane.css +2 -5
  32. package/front_end/panels/changes/changesSidebar.css +1 -1
  33. package/front_end/panels/changes/changesView.css +2 -2
  34. package/front_end/panels/console/consolePrompt.css +1 -1
  35. package/front_end/panels/console/consoleSidebar.css +4 -4
  36. package/front_end/panels/console/consoleView.css +2 -2
  37. package/front_end/panels/css_overview/components/cssOverviewStartView.css +1 -1
  38. package/front_end/panels/css_overview/cssOverviewCompletedView.css +8 -8
  39. package/front_end/panels/elements/classesPaneWidget.css +1 -1
  40. package/front_end/panels/elements/components/adornerSettingsPane.css +1 -1
  41. package/front_end/panels/elements/computedStyleWidgetTree.css +1 -1
  42. package/front_end/panels/elements/elementsPanel.css +1 -1
  43. package/front_end/panels/elements/elementsTreeOutline.css +1 -1
  44. package/front_end/panels/elements/layoutPane.css +1 -1
  45. package/front_end/panels/elements/platformFontsWidget.css +1 -1
  46. package/front_end/panels/elements/stylesSectionTree.css +1 -1
  47. package/front_end/panels/event_listeners/EventListenersView.ts +5 -4
  48. package/front_end/panels/event_listeners/eventListenersView.css +3 -2
  49. package/front_end/panels/help/ReleaseNoteText.ts +28 -0
  50. package/front_end/panels/issues/IssueKindView.ts +0 -6
  51. package/front_end/panels/issues/IssueView.ts +19 -27
  52. package/front_end/panels/issues/components/HideIssuesMenu.ts +7 -11
  53. package/front_end/panels/issues/components/hideIssuesMenu.css +8 -0
  54. package/front_end/panels/issues/issuesTree.css +17 -5
  55. package/front_end/panels/lighthouse/lighthouseStartView.css +2 -2
  56. package/front_end/panels/media/playerListView.css +1 -1
  57. package/front_end/panels/mobile_throttling/throttlingSettingsTab.css +1 -1
  58. package/front_end/panels/network/NetworkLogView.ts +13 -0
  59. package/front_end/panels/network/NetworkSearchScope.ts +3 -1
  60. package/front_end/panels/network/blockedURLsPane.css +1 -1
  61. package/front_end/panels/network/networkConfigView.css +1 -1
  62. package/front_end/panels/network/networkLogView.css +3 -3
  63. package/front_end/panels/profiler/profileLauncherView.css +3 -3
  64. package/front_end/panels/security/mainView.css +2 -2
  65. package/front_end/panels/security/originView.css +1 -1
  66. package/front_end/panels/sensors/sensors.css +2 -2
  67. package/front_end/panels/settings/emulation/components/userAgentClientHintsForm.css +1 -1
  68. package/front_end/panels/settings/emulation/devicesSettingsTab.css +4 -4
  69. package/front_end/panels/settings/frameworkIgnoreListSettingsTab.css +1 -1
  70. package/front_end/panels/settings/settingsScreen.css +2 -2
  71. package/front_end/panels/sources/CoveragePlugin.ts +7 -2
  72. package/front_end/panels/sources/JavaScriptBreakpointsSidebarPane.ts +14 -17
  73. package/front_end/panels/sources/callStackSidebarPane.css +1 -1
  74. package/front_end/panels/sources/dialog.css +1 -1
  75. package/front_end/panels/sources/javaScriptBreakpointsSidebarPane.css +19 -45
  76. package/front_end/panels/sources/navigatorTree.css +4 -4
  77. package/front_end/panels/sources/sourcesPanel.css +2 -2
  78. package/front_end/panels/sources/threadsSidebarPane.css +1 -1
  79. package/front_end/panels/timeline/components/WebVitalsTooltip.css +1 -1
  80. package/front_end/panels/timeline/historyToolbarButton.css +1 -1
  81. package/front_end/panels/timeline/timelineStatusDialog.css +1 -1
  82. package/front_end/panels/webauthn/webauthnPane.css +2 -2
  83. package/front_end/ui/components/adorners/adorner.css +1 -1
  84. package/front_end/ui/components/expandable_list/expandableList.css +1 -1
  85. package/front_end/ui/components/linear_memory_inspector/valueInterpreterDisplay.css +1 -2
  86. package/front_end/ui/components/linear_memory_inspector/valueInterpreterSettings.css +1 -1
  87. package/front_end/ui/components/report_view/reportKey.css +1 -1
  88. package/front_end/ui/components/report_view/reportValue.css +1 -1
  89. package/front_end/ui/components/settings/settingCheckbox.css +5 -0
  90. package/front_end/ui/legacy/ContextMenu.ts +10 -3
  91. package/front_end/ui/legacy/SoftContextMenu.ts +9 -2
  92. package/front_end/ui/legacy/checkboxTextLabel.css +5 -1
  93. package/front_end/ui/legacy/components/color_picker/spectrum.css +9 -9
  94. package/front_end/ui/legacy/components/data_grid/dataGrid.css +2 -2
  95. package/front_end/ui/legacy/components/inline_editor/cssAngleEditor.css +3 -3
  96. package/front_end/ui/legacy/components/inline_editor/cssLength.css +1 -1
  97. package/front_end/ui/legacy/components/inline_editor/cssShadowEditor.css +1 -1
  98. package/front_end/ui/legacy/components/inline_editor/fontEditor.css +1 -1
  99. package/front_end/ui/legacy/components/object_ui/objectPropertiesSection.css +2 -2
  100. package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +13 -7
  101. package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +2 -2
  102. package/front_end/ui/legacy/components/source_frame/imageView.css +1 -1
  103. package/front_end/ui/legacy/components/text_editor/cmdevtools.css +6 -14
  104. package/front_end/ui/legacy/emptyWidget.css +1 -1
  105. package/front_end/ui/legacy/filter.css +1 -1
  106. package/front_end/ui/legacy/infobar.css +2 -2
  107. package/front_end/ui/legacy/inspectorCommon.css +49 -45
  108. package/front_end/ui/legacy/inspectorSyntaxHighlight.css +3 -3
  109. package/front_end/ui/legacy/inspectorViewTabbedPane.css +1 -1
  110. package/front_end/ui/legacy/searchableView.css +1 -1
  111. package/front_end/ui/legacy/softContextMenu.css +11 -1
  112. package/front_end/ui/legacy/textPrompt.css +1 -1
  113. package/front_end/ui/legacy/themeColors.css +1 -0
  114. package/front_end/ui/legacy/toolbar.css +8 -8
  115. package/front_end/ui/legacy/treeoutline.css +4 -4
  116. package/inspector_overlay/common.css +2 -2
  117. package/inspector_overlay/tool_highlight.css +1 -1
  118. package/inspector_overlay/tool_paused.css +2 -2
  119. package/package.json +1 -1
  120. package/scripts/eslint_rules/lib/es_modules_import.js +21 -20
  121. package/scripts/eslint_rules/lib/l10n_filename_matches.js +4 -3
  122. package/scripts/eslint_rules/lib/migrate_create_shadow_root_with_styles.js +2 -2
  123. package/scripts/eslint_rules/lib/migrate_register_required_css.js +1 -1
  124. package/scripts/eslint_rules/tests/es_modules_import_test.js +3 -2
  125. package/front_end/panels/browser_debugger/module.json +0 -3
@@ -3,8 +3,8 @@
3
3
  // found in the LICENSE file.
4
4
 
5
5
  import * as Common from '../common/common.js';
6
-
7
6
  import * as i18n from '../i18n/i18n.js';
7
+
8
8
  const UIStrings = {
9
9
  /**
10
10
  *@description Title of a setting under the Console category that can be invoked through the Command Menu
@@ -746,6 +746,35 @@ Common.Settings.registerSettingExtension({
746
746
  title: i18nLazyString(UIStrings.emulateCssMediaFeature, {PH1: 'prefers-color-scheme'}),
747
747
  });
748
748
 
749
+ Common.Settings.registerSettingExtension({
750
+ category: Common.Settings.SettingCategory.RENDERING,
751
+ settingName: 'emulatedCSSMediaFeatureForcedColors',
752
+ settingType: Common.Settings.SettingType.ENUM,
753
+ storageType: Common.Settings.SettingStorageType.Session,
754
+ defaultValue: '',
755
+ options: [
756
+ {
757
+ title: i18nLazyString(UIStrings.doNotEmulateCss, {PH1: 'forced-colors'}),
758
+ text: i18nLazyString(UIStrings.noEmulation),
759
+ value: '',
760
+ },
761
+ {
762
+ title: i18nLazyString(UIStrings.emulateCss, {PH1: 'forced-colors: active'}),
763
+ text: i18n.i18n.lockedLazyString('forced-colors: active'),
764
+ value: 'active',
765
+ },
766
+ {
767
+ title: i18nLazyString(UIStrings.emulateCss, {PH1: 'forced-colors: none'}),
768
+ text: i18n.i18n.lockedLazyString('forced-colors: none'),
769
+ value: 'none',
770
+ },
771
+ ],
772
+ tags: [
773
+ i18nLazyString(UIStrings.query),
774
+ ],
775
+ title: i18nLazyString(UIStrings.emulateCssMediaFeature, {PH1: 'forced-colors'}),
776
+ });
777
+
749
778
  Common.Settings.registerSettingExtension({
750
779
  category: Common.Settings.SettingCategory.RENDERING,
751
780
  settingName: 'emulatedCSSMediaFeaturePrefersReducedMotion',
@@ -3,7 +3,6 @@
3
3
  { "name": "panels/emulation", "type": "autostart" },
4
4
 
5
5
  { "name": "panels/lighthouse" },
6
- { "name": "panels/browser_debugger" },
7
6
  { "name": "emulated_devices" },
8
7
  { "name": "panels/issues" },
9
8
  { "name": "panels/layers" },
@@ -187,6 +187,10 @@ const UIStrings = {
187
187
  * page from loading images with the WebP format.
188
188
  */
189
189
  disableWebpImageFormat: 'Disable `WebP` image format',
190
+ /**
191
+ * @description Explanation text for the 'Forces CSS forced-colors' setting in the Rendering tool.
192
+ */
193
+ forcesCssForcedColors: 'Forces CSS forced-colors media feature',
190
194
  };
191
195
  const str_ = i18n.i18n.registerUIStrings('entrypoints/inspector_main/RenderingOptions.ts', UIStrings);
192
196
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
@@ -263,13 +267,16 @@ export class RenderingOptionsView extends UI.Widget.VBox {
263
267
  i18nString(UIStrings.forcesCssPreferscolorschemeMedia),
264
268
  Common.Settings.Settings.instance().moduleSetting('emulatedCSSMediaFeaturePrefersColorScheme'));
265
269
  this.appendSelect(
266
- i18nString(UIStrings.forcesCssPrefersreducedmotion),
267
- Common.Settings.Settings.instance().moduleSetting('emulatedCSSMediaFeaturePrefersReducedMotion'));
270
+ i18nString(UIStrings.forcesCssForcedColors),
271
+ Common.Settings.Settings.instance().moduleSetting('emulatedCSSMediaFeatureForcedColors'));
268
272
  if (supportsPrefersContrast()) {
269
273
  this.appendSelect(
270
274
  i18nString(UIStrings.forcesCssPreferscontrastMedia),
271
275
  Common.Settings.Settings.instance().moduleSetting('emulatedCSSMediaFeaturePrefersContrast'));
272
276
  }
277
+ this.appendSelect(
278
+ i18nString(UIStrings.forcesCssPrefersreducedmotion),
279
+ Common.Settings.Settings.instance().moduleSetting('emulatedCSSMediaFeaturePrefersReducedMotion'));
273
280
  if (supportsPrefersReducedData()) {
274
281
  this.appendSelect(
275
282
  i18nString(UIStrings.forcesCssPrefersreduceddataMedia),
@@ -8,8 +8,8 @@
8
8
  padding: 12px;
9
9
  }
10
10
 
11
- [is=dt-checkbox] {
12
- margin: 0 0 10px 0;
11
+ [is="dt-checkbox"] {
12
+ margin: 0 0 10px;
13
13
  flex: none;
14
14
  }
15
15
 
@@ -47,6 +47,7 @@ import * as Persistence from '../../models/persistence/persistence.js';
47
47
  import * as Workspace from '../../models/workspace/workspace.js';
48
48
  import * as Snippets from '../../panels/snippets/snippets.js';
49
49
  import * as Timeline from '../../panels/timeline/timeline.js';
50
+ import * as IconButton from '../../ui/components/icon_button/icon_button.js';
50
51
  import * as PerfUI from '../../ui/legacy/components/perf_ui/perf_ui.js';
51
52
  import * as Components from '../../ui/legacy/components/utils/utils.js';
52
53
  import * as UI from '../../ui/legacy/legacy.js';
@@ -147,6 +148,9 @@ export class MainImpl {
147
148
  console.timeStamp('Main._gotPreferences');
148
149
  this.createSettings(prefs);
149
150
  await this.requestAndRegisterLocaleData();
151
+
152
+ Host.userMetrics.syncSetting(Common.Settings.Settings.instance().moduleSetting<boolean>('sync_preferences').get());
153
+
150
154
  this.createAppUI();
151
155
  }
152
156
 
@@ -873,6 +877,16 @@ export class MainMenuItem implements UI.Toolbar.Provider {
873
877
  if (location !== 'drawer-view' && location !== 'panel') {
874
878
  continue;
875
879
  }
880
+
881
+ if (viewExtension.isPreviewFeature()) {
882
+ const previewIcon = new IconButton.Icon.Icon();
883
+ previewIcon.data = {iconName: 'ic_preview_feature', color: 'var(--icon-color)', width: '14px', height: '14px'};
884
+ moreTools.defaultSection().appendItem(title, () => {
885
+ UI.ViewManager.ViewManager.instance().showView(id, true, false);
886
+ }, /* disabled=*/ false, previewIcon);
887
+ continue;
888
+ }
889
+
876
890
  moreTools.defaultSection().appendItem(title, () => {
877
891
  UI.ViewManager.ViewManager.instance().showView(id, true, false);
878
892
  });
@@ -237,8 +237,6 @@ async function loadMainModule(): Promise<typeof Main> {
237
237
 
238
238
  async function loadInspectorMainModule(): Promise<typeof InspectorMain> {
239
239
  if (!loadedInspectorMainModule) {
240
- // Side-effect import resources in module.json
241
- await Root.Runtime.Runtime.instance().loadModulePromise('entrypoints/inspector_main');
242
240
  loadedInspectorMainModule = await import('../inspector_main/inspector_main.js');
243
241
  }
244
242
  return loadedInspectorMainModule;
@@ -13,7 +13,7 @@
13
13
  flex: none;
14
14
  max-width: 600px;
15
15
  max-height: 202px;
16
- margin: 20px 0 5px 0;
16
+ margin: 20px 0 5px;
17
17
  }
18
18
 
19
19
  .network-discovery-list-empty {
@@ -25,7 +25,7 @@
25
25
  }
26
26
 
27
27
  .network-discovery-list-item {
28
- padding: 3px 5px 3px 5px;
28
+ padding: 3px 5px;
29
29
  height: 30px;
30
30
  display: flex;
31
31
  align-items: center;
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "modules" : [
3
- { "name": "panels/browser_debugger" },
4
3
  { "name": "panels/issues" },
5
4
  { "name": "panels/layer_viewer" },
6
5
  { "name": "panels/network" },
@@ -59,15 +59,13 @@ export async function _executeTestScript() {
59
59
 
60
60
  // Auto-start unit tests
61
61
  self.test = async function() {
62
- // TODO(crbug.com/1011811): Remove eval when we use TypeScript which does support dynamic imports
63
- await eval(`import("${testScriptURL}")`);
62
+ await import(testScriptURL);
64
63
  };
65
64
  return;
66
65
  }
67
66
 
68
67
  try {
69
- // TODO(crbug.com/1011811): Remove eval when we use TypeScript which does support dynamic imports
70
- await eval(`import("${testScriptURL}")`);
68
+ await import(testScriptURL);
71
69
  } catch (err) {
72
70
  TestRunner.addResult('TEST ENDED EARLY DUE TO UNCAUGHT ERROR:');
73
71
  TestRunner.addResult(err && err.stack || err);
@@ -35,7 +35,7 @@
35
35
  }
36
36
 
37
37
  .file-system-list-item {
38
- padding: 3px 5px 3px 5px;
38
+ padding: 3px 5px;
39
39
  height: 30px;
40
40
  display: flex;
41
41
  align-items: center;
@@ -109,6 +109,6 @@
109
109
  * Always show an outline. Needed because we have a white background here.
110
110
  */
111
111
 
112
- .workspace-settings-tab .harmony-input[type=text]:not(.error-input):not(:invalid) {
112
+ .workspace-settings-tab .harmony-input[type="text"]:not(.error-input):not(:invalid) {
113
113
  box-shadow: var(--legacy-focus-ring-inactive-shadow);
114
114
  }
@@ -34,7 +34,7 @@ span.ax-value-undefined {
34
34
  text-decoration: line-through;
35
35
  }
36
36
 
37
- .tree-outline span[is=dt-icon-label] {
37
+ .tree-outline span[is="dt-icon-label"] {
38
38
  position: relative;
39
39
  left: -11px;
40
40
  }
@@ -60,7 +60,7 @@ span.ax-value-undefined {
60
60
  left: -2px;
61
61
  }
62
62
 
63
- .tree-outline span[is=dt-icon-label] + .ax-name {
63
+ .tree-outline span[is="dt-icon-label"] + .ax-name {
64
64
  margin-left: -11px;
65
65
  }
66
66
 
@@ -45,7 +45,7 @@
45
45
  -webkit-mask-size: 30px 10px;
46
46
  -webkit-mask-repeat: no-repeat;
47
47
  background-color: var(--color-syntax-7);
48
- content: '';
48
+ content: "";
49
49
  text-shadow: none;
50
50
  margin-right: -2px;
51
51
  height: 12px;
@@ -112,7 +112,7 @@ circle.animation-keyframe-point:active {
112
112
  }
113
113
 
114
114
  .animation-timeline-header::after {
115
- content: '';
115
+ content: "";
116
116
  height: calc(100% - 48px - 28px);
117
117
  position: absolute;
118
118
  width: 150px;
@@ -184,14 +184,14 @@ circle.animation-keyframe-point:active {
184
184
  height: 100%;
185
185
  width: 100%;
186
186
  top: 28px;
187
- border-left: 1px solid var(--color-syntax-1);
187
+ border-left: 1px solid var(--color-red);
188
188
  z-index: 2;
189
189
  cursor: col-resize;
190
190
  }
191
191
 
192
192
  .animation-scrubber-line {
193
193
  width: 11px;
194
- background: linear-gradient(to right, transparent 5px, var(--color-syntax-1) 5px, var(--color-syntax-1) 6px, transparent 6px);
194
+ background: linear-gradient(to right, transparent 5px, var(--color-red) 5px, var(--color-red) 6px, transparent 6px);
195
195
  position: absolute;
196
196
  top: -28px;
197
197
  height: 28px;
@@ -204,7 +204,7 @@ circle.animation-keyframe-point:active {
204
204
  width: 7px;
205
205
  height: 7px;
206
206
  transform: rotate(45deg);
207
- background: var(--color-syntax-1);
207
+ background: var(--color-red);
208
208
  position: absolute;
209
209
  left: 2px;
210
210
  top: 1px;
@@ -361,7 +361,7 @@ text.animation-timeline-grid-label {
361
361
 
362
362
  .animation-paused::before,
363
363
  .animation-paused::after {
364
- content: '';
364
+ content: "";
365
365
  background: var(--color-background);
366
366
  width: 7px;
367
367
  height: 20px;
@@ -54,7 +54,7 @@ button.link {
54
54
  }
55
55
 
56
56
  .inline-name::after {
57
- content: ':\u00a0';
57
+ content: ":\u00a0";
58
58
  }
59
59
 
60
60
  .inline-items {
@@ -122,7 +122,7 @@
122
122
 
123
123
  .database-query-result {
124
124
  position: relative;
125
- padding: 1px 22px 1px 22px;
125
+ padding: 1px 22px;
126
126
  min-height: 16px;
127
127
  margin-left: -22px;
128
128
  padding-right: 0;
@@ -18,7 +18,7 @@
18
18
  }
19
19
 
20
20
  li.storage-group-list-item {
21
- padding: 10px 8px 6px 8px;
21
+ padding: 10px 8px 6px;
22
22
  }
23
23
 
24
24
  li.storage-group-list-item:not(:first-child) {
@@ -2,7 +2,6 @@
2
2
  // Use of this source code is governed by a BSD-style license that can be
3
3
  // found in the LICENSE file.
4
4
 
5
- import * as Root from '../../core/root/root.js';
6
5
  import * as SDK from '../../core/sdk/sdk.js';
7
6
  import * as UI from '../../ui/legacy/legacy.js';
8
7
 
@@ -83,8 +82,6 @@ let loadedBrowserDebuggerModule: (typeof BrowserDebugger|undefined);
83
82
 
84
83
  async function loadBrowserDebuggerModule(): Promise<typeof BrowserDebugger> {
85
84
  if (!loadedBrowserDebuggerModule) {
86
- // Side-effect import resources in module.json
87
- await Root.Runtime.Runtime.instance().loadModulePromise('panels/browser_debugger');
88
85
  loadedBrowserDebuggerModule = await import('./browser_debugger.js');
89
86
  }
90
87
  return loadedBrowserDebuggerModule;
@@ -15,10 +15,7 @@
15
15
 
16
16
  .breakpoint-condition {
17
17
  display: block;
18
- margin-top: 4px;
19
- margin-bottom: 4px;
20
- margin-left: 23px;
21
- margin-right: 8px;
18
+ margin: 4px 8px 4px 23px;
22
19
  }
23
20
 
24
21
  .breakpoint-condition-input {
@@ -42,7 +39,7 @@
42
39
  background-color: var(--legacy-focus-bg-color);
43
40
  }
44
41
 
45
- .breakpoint-entry [is=dt-checkbox] {
42
+ .breakpoint-entry [is="dt-checkbox"] {
46
43
  max-width: 100%;
47
44
  }
48
45
 
@@ -23,7 +23,7 @@
23
23
  }
24
24
 
25
25
  li .icon {
26
- margin: -3px -5px -3px -5px;
26
+ margin: -3px -5px;
27
27
  background: var(--color-background-elevation-2);
28
28
  }
29
29
 
@@ -4,12 +4,12 @@
4
4
  * found in the LICENSE file.
5
5
  */
6
6
 
7
- [slot=insertion-point-main] {
7
+ [slot="insertion-point-main"] {
8
8
  flex-direction: column;
9
9
  display: flex;
10
10
  }
11
11
 
12
- [slot=insertion-point-sidebar] {
12
+ [slot="insertion-point-sidebar"] {
13
13
  overflow: auto;
14
14
  }
15
15
 
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  #console-prompt .CodeMirror {
8
- padding: 3px 0 1px 0;
8
+ padding: 3px 0 1px;
9
9
  }
10
10
 
11
11
  #console-prompt .CodeMirror-line {
@@ -19,7 +19,7 @@
19
19
  margin: 0 8px;
20
20
  }
21
21
 
22
- [is=ui-icon] {
22
+ [is="ui-icon"] {
23
23
  margin: 0 5px;
24
24
  }
25
25
 
@@ -48,7 +48,7 @@ li .largeicon-navigator-folder {
48
48
  }
49
49
 
50
50
  @media (forced-colors: active) {
51
- [is=ui-icon].icon-mask {
51
+ [is="ui-icon"].icon-mask {
52
52
  background-color: ButtonText;
53
53
  }
54
54
 
@@ -65,8 +65,8 @@ li .largeicon-navigator-folder {
65
65
  color: HighlightText;
66
66
  }
67
67
 
68
- .tree-outline li:hover [is=ui-icon].icon-mask,
69
- .tree-outline li.selected [is=ui-icon].icon-mask,
68
+ .tree-outline li:hover [is="ui-icon"].icon-mask,
69
+ .tree-outline li.selected [is="ui-icon"].icon-mask,
70
70
  .tree-outline li.selected:focus .spritesheet-mediumicons:not(.icon-mask) {
71
71
  background-color: HighlightText !important; /* stylelint-disable-line declaration-no-important */
72
72
  }
@@ -462,7 +462,7 @@
462
462
 
463
463
  @media (forced-colors: active) {
464
464
  .console-message-expand-icon,
465
- .console-warning-level [is=ui-icon].icon-mask.expand-group-icon {
465
+ .console-warning-level [is="ui-icon"].icon-mask.expand-group-icon {
466
466
  forced-color-adjust: none;
467
467
  background-color: ButtonText;
468
468
  }
@@ -493,7 +493,7 @@
493
493
  color: HighlightText;
494
494
  }
495
495
 
496
- .console-message-wrapper:focus [is=ui-icon].icon-mask {
496
+ .console-message-wrapper:focus [is="ui-icon"].icon-mask {
497
497
  background-color: HighlightText;
498
498
  }
499
499
 
@@ -84,7 +84,7 @@ h1 {
84
84
  font-size: 13px;
85
85
  line-height: 20px;
86
86
  letter-spacing: 0.01em;
87
- margin: 9px 0 14px 0;
87
+ margin: 9px 0 14px;
88
88
  }
89
89
 
90
90
  .preview-icon {
@@ -28,7 +28,7 @@
28
28
 
29
29
  .overview-completed-view .colors ul li {
30
30
  display: inline-block;
31
- margin: 0 0 16px 0;
31
+ margin: 0 0 16px;
32
32
  padding: 0 8px 0 0;
33
33
  }
34
34
 
@@ -111,7 +111,7 @@
111
111
  font-size: 15px;
112
112
  font-weight: normal;
113
113
  padding: 0;
114
- margin: 0 0 20px 0;
114
+ margin: 0 0 20px;
115
115
  padding-left: calc(var(--overview-default-padding) + var(--overview-icon-padding));
116
116
  position: relative;
117
117
  height: 26px;
@@ -119,7 +119,7 @@
119
119
  }
120
120
 
121
121
  .results-section h1::before {
122
- content: '';
122
+ content: "";
123
123
  display: block;
124
124
  position: absolute;
125
125
  left: var(--overview-default-padding);
@@ -264,14 +264,14 @@
264
264
  .overview-completed-view .font-info h2 {
265
265
  font-size: 14px;
266
266
  font-weight: bold;
267
- margin: 0 0 1em 0;
267
+ margin: 0 0 1em;
268
268
  }
269
269
 
270
270
  .overview-completed-view .font-info h3 {
271
271
  font-size: 13px;
272
272
  font-weight: normal;
273
273
  font-style: italic;
274
- margin: 0 0 0.5em 0;
274
+ margin: 0 0 0.5em;
275
275
  }
276
276
 
277
277
  .overview-completed-view .font-info {
@@ -300,7 +300,7 @@
300
300
  width: 30px;
301
301
  }
302
302
 
303
- .contrast-warning [is=ui-icon] {
303
+ .contrast-warning [is="ui-icon"] {
304
304
  margin-left: 5px;
305
305
  }
306
306
 
@@ -318,11 +318,11 @@
318
318
  min-width: initial;
319
319
  }
320
320
 
321
- [is=ui-icon].smallicon-checkmark-square {
321
+ [is="ui-icon"].smallicon-checkmark-square {
322
322
  background-color: var(--color-green);
323
323
  }
324
324
 
325
- [is=ui-icon].smallicon-no {
325
+ [is="ui-icon"].smallicon-no {
326
326
  background-color: var(--color-red);
327
327
  }
328
328
 
@@ -16,7 +16,7 @@
16
16
  justify-content: flex-start;
17
17
  }
18
18
 
19
- .styles-element-classes-pane [is=dt-checkbox] {
19
+ .styles-element-classes-pane [is="dt-checkbox"] {
20
20
  margin-right: 15px;
21
21
  }
22
22
 
@@ -44,7 +44,7 @@
44
44
 
45
45
  .close::before,
46
46
  .close::after {
47
- content: '';
47
+ content: "";
48
48
  display: inline-block;
49
49
  position: absolute;
50
50
  left: 0;
@@ -32,7 +32,7 @@
32
32
  }
33
33
 
34
34
  .group-title > h1 {
35
- margin: 1px 0 0 0;
35
+ margin: 1px 0 0;
36
36
  padding: 1em 0;
37
37
  width: 100%;
38
38
  cursor: pointer;
@@ -30,7 +30,7 @@
30
30
  #elements-content {
31
31
  flex: 1 1;
32
32
  overflow: auto;
33
- padding: 2px 0 0 0;
33
+ padding: 2px 0 0;
34
34
  }
35
35
 
36
36
  .style-panes-wrapper {
@@ -67,7 +67,7 @@
67
67
  user-select: none;
68
68
  -webkit-mask-image: var(--image-file-treeoutlineTriangles);
69
69
  -webkit-mask-size: 32px 24px;
70
- content: '\A0\A0';
70
+ content: "\A0\A0";
71
71
  color: transparent;
72
72
  text-shadow: none;
73
73
  margin-right: -3px;
@@ -160,7 +160,7 @@
160
160
  }
161
161
  /* We set dimensions for the invisible input to support quick highlight a11y feature
162
162
  that uses the dimensions to draw an outline around the element. */
163
- .color-picker-label input[type=color] {
163
+ .color-picker-label input[type="color"] {
164
164
  width: 100%;
165
165
  height: 100%;
166
166
  position: absolute;
@@ -44,5 +44,5 @@
44
44
  }
45
45
 
46
46
  .font-stats-item .font-delimeter {
47
- margin: 0 1ex 0 1ex;
47
+ margin: 0 1ex;
48
48
  }
@@ -137,7 +137,7 @@ ol.expanded {
137
137
 
138
138
  .tree-outline li.editing-sub-part {
139
139
  padding: 3px 6px 8px 18px;
140
- margin: -1px -6px -8px -6px;
140
+ margin: -1px -6px -8px;
141
141
  text-overflow: clip;
142
142
  }
143
143
 
@@ -301,10 +301,6 @@ export class ObjectEventListenerBar extends UI.TreeOutline.TreeElement {
301
301
 
302
302
  private setTitle(object: SDK.RemoteObject.RemoteObject, linkifier: Components.Linkifier.Linkifier): void {
303
303
  const title = this.listItemElement.createChild('span', 'event-listener-details');
304
- const subtitle = this.listItemElement.createChild('span', 'event-listener-tree-subtitle');
305
- const linkElement =
306
- linkifier.linkifyRawLocation(this.eventListenerInternal.location(), this.eventListenerInternal.sourceURL());
307
- subtitle.appendChild(linkElement);
308
304
 
309
305
  const propertyValue = ObjectUI.ObjectPropertiesSection.ObjectPropertiesSection.createPropertyValue(
310
306
  object, /* wasThrown */ false, /* showPreview */ false);
@@ -333,6 +329,11 @@ export class ObjectEventListenerBar extends UI.TreeOutline.TreeElement {
333
329
  title.appendChild(passiveButton);
334
330
  }
335
331
 
332
+ const subtitle = title.createChild('span', 'event-listener-tree-subtitle');
333
+ const linkElement =
334
+ linkifier.linkifyRawLocation(this.eventListenerInternal.location(), this.eventListenerInternal.sourceURL());
335
+ subtitle.appendChild(linkElement);
336
+
336
337
  this.listItemElement.addEventListener('contextmenu', event => {
337
338
  const menu = new UI.ContextMenu.ContextMenu(event);
338
339
  if (event.target !== linkElement) {
@@ -33,7 +33,8 @@
33
33
  color: var(--color-syntax-2);
34
34
  }
35
35
 
36
- .tree-outline-disclosure .object-value-node {
36
+ .tree-outline-disclosure .object-value-node,
37
+ .tree-outline-disclosure .object-value-object {
37
38
  overflow: hidden;
38
39
  text-overflow: ellipsis;
39
40
  }
@@ -53,7 +54,7 @@
53
54
  background-color: var(--color-background-elevation-1);
54
55
  border-radius: 3px;
55
56
  border: 1px solid var(--color-details-hairline);
56
- margin-left: 10px;
57
+ margin-left: 5px;
57
58
  display: block;
58
59
  cursor: pointer;
59
60
  opacity: 80%;