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.
- package/.stylelintrc.json +15 -11
- package/config/gni/all_devtools_files.gni +0 -1
- package/config/gni/devtools_grd_files.gni +0 -1
- package/front_end/Images/whatsnew.avif +0 -0
- package/front_end/Tests.js +30 -29
- package/front_end/core/host/InspectorFrontendHost.ts +16 -30
- package/front_end/core/host/InspectorFrontendHostAPI.ts +1 -0
- package/front_end/core/host/UserMetrics.ts +25 -0
- package/front_end/core/i18n/locales/en-US.json +4 -1
- package/front_end/core/i18n/locales/en-XL.json +4 -1
- package/front_end/core/sdk/CSSModel.ts +64 -50
- package/front_end/core/sdk/EmulationModel.ts +11 -0
- package/front_end/core/sdk/sdk-meta.ts +30 -1
- package/front_end/entrypoints/devtools_app/devtools_app.json +0 -1
- package/front_end/entrypoints/inspector_main/RenderingOptions.ts +9 -2
- package/front_end/entrypoints/inspector_main/renderingOptions.css +2 -2
- package/front_end/entrypoints/main/MainImpl.ts +14 -0
- package/front_end/entrypoints/main/main-meta.ts +0 -2
- package/front_end/entrypoints/node_main/nodeConnectionsPanel.css +2 -2
- package/front_end/entrypoints/worker_app/worker_app.json +0 -1
- package/front_end/legacy_test_runner/test_runner/test_runner.js +2 -4
- package/front_end/models/persistence/editFileSystemView.css +1 -1
- package/front_end/models/persistence/workspaceSettingsTab.css +1 -1
- package/front_end/panels/accessibility/accessibilityNode.css +2 -2
- package/front_end/panels/accessibility/axBreadcrumbs.css +1 -1
- package/front_end/panels/animation/animationTimeline.css +5 -5
- package/front_end/panels/application/components/frameDetailsReportView.css +1 -1
- package/front_end/panels/application/resourcesPanel.css +1 -1
- package/front_end/panels/application/resourcesSidebar.css +1 -1
- package/front_end/panels/browser_debugger/browser_debugger-meta.ts +0 -3
- package/front_end/panels/browser_debugger/xhrBreakpointsSidebarPane.css +2 -5
- package/front_end/panels/changes/changesSidebar.css +1 -1
- package/front_end/panels/changes/changesView.css +2 -2
- package/front_end/panels/console/consolePrompt.css +1 -1
- package/front_end/panels/console/consoleSidebar.css +4 -4
- package/front_end/panels/console/consoleView.css +2 -2
- package/front_end/panels/css_overview/components/cssOverviewStartView.css +1 -1
- package/front_end/panels/css_overview/cssOverviewCompletedView.css +8 -8
- package/front_end/panels/elements/classesPaneWidget.css +1 -1
- package/front_end/panels/elements/components/adornerSettingsPane.css +1 -1
- package/front_end/panels/elements/computedStyleWidgetTree.css +1 -1
- package/front_end/panels/elements/elementsPanel.css +1 -1
- package/front_end/panels/elements/elementsTreeOutline.css +1 -1
- package/front_end/panels/elements/layoutPane.css +1 -1
- package/front_end/panels/elements/platformFontsWidget.css +1 -1
- package/front_end/panels/elements/stylesSectionTree.css +1 -1
- package/front_end/panels/event_listeners/EventListenersView.ts +5 -4
- package/front_end/panels/event_listeners/eventListenersView.css +3 -2
- package/front_end/panels/help/ReleaseNoteText.ts +28 -0
- package/front_end/panels/issues/IssueKindView.ts +0 -6
- package/front_end/panels/issues/IssueView.ts +19 -27
- package/front_end/panels/issues/components/HideIssuesMenu.ts +7 -11
- package/front_end/panels/issues/components/hideIssuesMenu.css +8 -0
- package/front_end/panels/issues/issuesTree.css +17 -5
- package/front_end/panels/lighthouse/lighthouseStartView.css +2 -2
- package/front_end/panels/media/playerListView.css +1 -1
- package/front_end/panels/mobile_throttling/throttlingSettingsTab.css +1 -1
- package/front_end/panels/network/NetworkLogView.ts +13 -0
- package/front_end/panels/network/NetworkSearchScope.ts +3 -1
- package/front_end/panels/network/blockedURLsPane.css +1 -1
- package/front_end/panels/network/networkConfigView.css +1 -1
- package/front_end/panels/network/networkLogView.css +3 -3
- package/front_end/panels/profiler/profileLauncherView.css +3 -3
- package/front_end/panels/security/mainView.css +2 -2
- package/front_end/panels/security/originView.css +1 -1
- package/front_end/panels/sensors/sensors.css +2 -2
- package/front_end/panels/settings/emulation/components/userAgentClientHintsForm.css +1 -1
- package/front_end/panels/settings/emulation/devicesSettingsTab.css +4 -4
- package/front_end/panels/settings/frameworkIgnoreListSettingsTab.css +1 -1
- package/front_end/panels/settings/settingsScreen.css +2 -2
- package/front_end/panels/sources/CoveragePlugin.ts +7 -2
- package/front_end/panels/sources/JavaScriptBreakpointsSidebarPane.ts +14 -17
- package/front_end/panels/sources/callStackSidebarPane.css +1 -1
- package/front_end/panels/sources/dialog.css +1 -1
- package/front_end/panels/sources/javaScriptBreakpointsSidebarPane.css +19 -45
- package/front_end/panels/sources/navigatorTree.css +4 -4
- package/front_end/panels/sources/sourcesPanel.css +2 -2
- package/front_end/panels/sources/threadsSidebarPane.css +1 -1
- package/front_end/panels/timeline/components/WebVitalsTooltip.css +1 -1
- package/front_end/panels/timeline/historyToolbarButton.css +1 -1
- package/front_end/panels/timeline/timelineStatusDialog.css +1 -1
- package/front_end/panels/webauthn/webauthnPane.css +2 -2
- package/front_end/ui/components/adorners/adorner.css +1 -1
- package/front_end/ui/components/expandable_list/expandableList.css +1 -1
- package/front_end/ui/components/linear_memory_inspector/valueInterpreterDisplay.css +1 -2
- package/front_end/ui/components/linear_memory_inspector/valueInterpreterSettings.css +1 -1
- package/front_end/ui/components/report_view/reportKey.css +1 -1
- package/front_end/ui/components/report_view/reportValue.css +1 -1
- package/front_end/ui/components/settings/settingCheckbox.css +5 -0
- package/front_end/ui/legacy/ContextMenu.ts +10 -3
- package/front_end/ui/legacy/SoftContextMenu.ts +9 -2
- package/front_end/ui/legacy/checkboxTextLabel.css +5 -1
- package/front_end/ui/legacy/components/color_picker/spectrum.css +9 -9
- package/front_end/ui/legacy/components/data_grid/dataGrid.css +2 -2
- package/front_end/ui/legacy/components/inline_editor/cssAngleEditor.css +3 -3
- package/front_end/ui/legacy/components/inline_editor/cssLength.css +1 -1
- package/front_end/ui/legacy/components/inline_editor/cssShadowEditor.css +1 -1
- package/front_end/ui/legacy/components/inline_editor/fontEditor.css +1 -1
- package/front_end/ui/legacy/components/object_ui/objectPropertiesSection.css +2 -2
- package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +13 -7
- package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +2 -2
- package/front_end/ui/legacy/components/source_frame/imageView.css +1 -1
- package/front_end/ui/legacy/components/text_editor/cmdevtools.css +6 -14
- package/front_end/ui/legacy/emptyWidget.css +1 -1
- package/front_end/ui/legacy/filter.css +1 -1
- package/front_end/ui/legacy/infobar.css +2 -2
- package/front_end/ui/legacy/inspectorCommon.css +49 -45
- package/front_end/ui/legacy/inspectorSyntaxHighlight.css +3 -3
- package/front_end/ui/legacy/inspectorViewTabbedPane.css +1 -1
- package/front_end/ui/legacy/searchableView.css +1 -1
- package/front_end/ui/legacy/softContextMenu.css +11 -1
- package/front_end/ui/legacy/textPrompt.css +1 -1
- package/front_end/ui/legacy/themeColors.css +1 -0
- package/front_end/ui/legacy/toolbar.css +8 -8
- package/front_end/ui/legacy/treeoutline.css +4 -4
- package/inspector_overlay/common.css +2 -2
- package/inspector_overlay/tool_highlight.css +1 -1
- package/inspector_overlay/tool_paused.css +2 -2
- package/package.json +1 -1
- package/scripts/eslint_rules/lib/es_modules_import.js +21 -20
- package/scripts/eslint_rules/lib/l10n_filename_matches.js +4 -3
- package/scripts/eslint_rules/lib/migrate_create_shadow_root_with_styles.js +2 -2
- package/scripts/eslint_rules/lib/migrate_register_required_css.js +1 -1
- package/scripts/eslint_rules/tests/es_modules_import_test.js +3 -2
- package/front_end/panels/browser_debugger/module.json +0 -3
|
@@ -650,12 +650,8 @@ div.CodeMirror:focus-within span.CodeMirror-nonmatchingbracket {
|
|
|
650
650
|
|
|
651
651
|
.cm-search-highlight::before {
|
|
652
652
|
position: absolute;
|
|
653
|
-
border-top
|
|
654
|
-
border-bottom
|
|
655
|
-
border-top-color: var(--override-search-highlight-border-color);
|
|
656
|
-
border-bottom-color: var(--override-search-highlight-border-color);
|
|
657
|
-
border-top-width: 1px;
|
|
658
|
-
border-bottom-width: 1px;
|
|
653
|
+
border-top: 1px solid var(--override-search-highlight-border-color);
|
|
654
|
+
border-bottom: 1px solid var(--override-search-highlight-border-color);
|
|
659
655
|
top: -1px;
|
|
660
656
|
bottom: 0;
|
|
661
657
|
left: 0;
|
|
@@ -669,19 +665,15 @@ div.CodeMirror:focus-within span.CodeMirror-nonmatchingbracket {
|
|
|
669
665
|
}
|
|
670
666
|
|
|
671
667
|
.cm-search-highlight-start::before {
|
|
672
|
-
border-left
|
|
668
|
+
border-left: 1px solid var(--override-search-highlight-border-color);
|
|
673
669
|
border-top-left-radius: 2px;
|
|
674
670
|
border-bottom-left-radius: 2px;
|
|
675
|
-
border-left-style: solid;
|
|
676
|
-
border-left-color: var(--override-search-highlight-border-color);
|
|
677
671
|
}
|
|
678
672
|
|
|
679
673
|
.cm-search-highlight-end::before {
|
|
680
|
-
border-right
|
|
674
|
+
border-right: 1px solid var(--override-search-highlight-border-color);
|
|
681
675
|
border-top-right-radius: 2px;
|
|
682
676
|
border-bottom-right-radius: 2px;
|
|
683
|
-
border-right-style: solid;
|
|
684
|
-
border-right-color: var(--override-search-highlight-border-color);
|
|
685
677
|
}
|
|
686
678
|
|
|
687
679
|
.cm-line-with-selection .cm-column-with-selection.cm-search-highlight-full::before {
|
|
@@ -701,7 +693,7 @@ div.CodeMirror:focus-within span.CodeMirror-nonmatchingbracket {
|
|
|
701
693
|
.cm-line-with-selection .cm-column-with-selection.cm-search-highlight::before {
|
|
702
694
|
--override-auto-gen-cmlinewithselectioncmcolumnwithselectioncmsearchhighlightbefore-backgroundcolor: rgb(241 234 0);
|
|
703
695
|
|
|
704
|
-
margin: -1px
|
|
696
|
+
margin: -1px;
|
|
705
697
|
background-color: var(--override-auto-gen-cmlinewithselectioncmcolumnwithselectioncmsearchhighlightbefore-backgroundcolor);
|
|
706
698
|
z-index: -1;
|
|
707
699
|
}
|
|
@@ -933,7 +925,7 @@ div.CodeMirror:focus-within span.CodeMirror-nonmatchingbracket {
|
|
|
933
925
|
}
|
|
934
926
|
|
|
935
927
|
.CodeMirror-foldmarker::before {
|
|
936
|
-
content:
|
|
928
|
+
content: "\2026";
|
|
937
929
|
font-size: 13px;
|
|
938
930
|
color: var(--color-text-secondary);
|
|
939
931
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
border-bottom: 1px solid var(--color-details-hairline);
|
|
12
12
|
flex-direction: column;
|
|
13
13
|
position: relative;
|
|
14
|
-
padding: 1px 6px
|
|
14
|
+
padding: 1px 6px;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.infobar:focus {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
.infobar-details-rows {
|
|
58
|
-
padding: 5px 5px 0
|
|
58
|
+
padding: 5px 5px 0;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
.infobar-details-row {
|
|
@@ -85,7 +85,7 @@ body {
|
|
|
85
85
|
overflow: hidden;
|
|
86
86
|
margin: 0;
|
|
87
87
|
cursor: default;
|
|
88
|
-
font-family:
|
|
88
|
+
font-family: ".SFNSDisplay-Regular", "Helvetica Neue", "Lucida Grande", sans-serif;
|
|
89
89
|
font-size: 12px;
|
|
90
90
|
tab-size: 4;
|
|
91
91
|
user-select: none;
|
|
@@ -99,7 +99,7 @@ body {
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
.platform-mac {
|
|
102
|
-
font-family:
|
|
102
|
+
font-family: ".SFNSDisplay-Regular", "Helvetica Neue", "Lucida Grande", sans-serif;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
.platform-mac,
|
|
@@ -110,7 +110,7 @@ body {
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
.platform-windows {
|
|
113
|
-
font-family:
|
|
113
|
+
font-family: "Segoe UI", Tahoma, sans-serif;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
:focus {
|
|
@@ -287,9 +287,13 @@ input::placeholder {
|
|
|
287
287
|
--override-input-placeholder-color: rgb(230 230 230 / 54%);
|
|
288
288
|
}
|
|
289
289
|
|
|
290
|
+
:host-context(.-theme-with-dark-background) input[type="checkbox"]:not(.-theme-preserve) {
|
|
291
|
+
accent-color: var(--color-checkbox-accent-color);
|
|
292
|
+
}
|
|
293
|
+
|
|
290
294
|
.harmony-input:not([type]),
|
|
291
|
-
.harmony-input[type=number],
|
|
292
|
-
.harmony-input[type=text] {
|
|
295
|
+
.harmony-input[type="number"],
|
|
296
|
+
.harmony-input[type="text"] {
|
|
293
297
|
padding: 3px 6px;
|
|
294
298
|
height: 24px;
|
|
295
299
|
border: none;
|
|
@@ -297,23 +301,23 @@ input::placeholder {
|
|
|
297
301
|
}
|
|
298
302
|
|
|
299
303
|
.harmony-input:not([type]).error-input,
|
|
300
|
-
.harmony-input[type=number].error-input,
|
|
301
|
-
.harmony-input[type=text].error-input,
|
|
304
|
+
.harmony-input[type="number"].error-input,
|
|
305
|
+
.harmony-input[type="text"].error-input,
|
|
302
306
|
.harmony-input:not([type]):invalid,
|
|
303
|
-
.harmony-input[type=number]:invalid,
|
|
304
|
-
.harmony-input[type=text]:invalid {
|
|
307
|
+
.harmony-input[type="number"]:invalid,
|
|
308
|
+
.harmony-input[type="text"]:invalid {
|
|
305
309
|
box-shadow: 0 0 0 1px var(--color-red);
|
|
306
310
|
}
|
|
307
311
|
|
|
308
312
|
.harmony-input:not([type]):not(.error-input):not(:invalid):hover,
|
|
309
|
-
.harmony-input[type=number]:not(.error-input):not(:invalid):hover,
|
|
310
|
-
.harmony-input[type=text]:not(.error-input):not(:invalid):hover {
|
|
313
|
+
.harmony-input[type="number"]:not(.error-input):not(:invalid):hover,
|
|
314
|
+
.harmony-input[type="text"]:not(.error-input):not(:invalid):hover {
|
|
311
315
|
box-shadow: var(--legacy-focus-ring-inactive-shadow);
|
|
312
316
|
}
|
|
313
317
|
|
|
314
318
|
.harmony-input:not([type]):not(.error-input):not(:invalid):focus,
|
|
315
|
-
.harmony-input[type=number]:not(.error-input):not(:invalid):focus,
|
|
316
|
-
.harmony-input[type=text]:not(.error-input):not(:invalid):focus {
|
|
319
|
+
.harmony-input[type="number"]:not(.error-input):not(:invalid):focus,
|
|
320
|
+
.harmony-input[type="text"]:not(.error-input):not(:invalid):focus {
|
|
317
321
|
box-shadow: var(--legacy-focus-ring-active-shadow);
|
|
318
322
|
}
|
|
319
323
|
|
|
@@ -422,7 +426,7 @@ input::placeholder {
|
|
|
422
426
|
/* This class is used outside of the settings screen in the "Renderer" and
|
|
423
427
|
"Sensors" panel. As such we need to override their style globally */
|
|
424
428
|
.settings-select {
|
|
425
|
-
margin: 0
|
|
429
|
+
margin: 0;
|
|
426
430
|
}
|
|
427
431
|
|
|
428
432
|
.chrome-select optgroup,
|
|
@@ -439,7 +443,7 @@ input::placeholder {
|
|
|
439
443
|
white-space: nowrap;
|
|
440
444
|
}
|
|
441
445
|
|
|
442
|
-
span[is=dt-icon-label] {
|
|
446
|
+
span[is="dt-icon-label"] {
|
|
443
447
|
flex: none;
|
|
444
448
|
}
|
|
445
449
|
|
|
@@ -465,29 +469,29 @@ span[is=dt-icon-label] {
|
|
|
465
469
|
z-index: 500;
|
|
466
470
|
}
|
|
467
471
|
|
|
468
|
-
[is=ui-icon] {
|
|
472
|
+
[is="ui-icon"] {
|
|
469
473
|
display: inline-block;
|
|
470
474
|
flex-shrink: 0;
|
|
471
475
|
}
|
|
472
476
|
|
|
473
|
-
.-theme-with-dark-background [is=ui-icon].icon-invert,
|
|
474
|
-
:host-context(.-theme-with-dark-background) [is=ui-icon].icon-invert {
|
|
477
|
+
.-theme-with-dark-background [is="ui-icon"].icon-invert,
|
|
478
|
+
:host-context(.-theme-with-dark-background) [is="ui-icon"].icon-invert {
|
|
475
479
|
filter: invert(80%) hue-rotate(180deg);
|
|
476
480
|
}
|
|
477
481
|
|
|
478
|
-
[is=ui-icon].icon-mask {
|
|
482
|
+
[is="ui-icon"].icon-mask {
|
|
479
483
|
--override-icon-mask-background-color: rgb(110 110 110);
|
|
480
484
|
|
|
481
485
|
background-color: var(--override-icon-mask-background-color);
|
|
482
486
|
-webkit-mask-position: var(--spritesheet-position);
|
|
483
487
|
}
|
|
484
488
|
|
|
485
|
-
.-theme-with-dark-background [is=ui-icon].icon-mask,
|
|
486
|
-
:host-context(.-theme-with-dark-background) [is=ui-icon].icon-mask {
|
|
489
|
+
.-theme-with-dark-background [is="ui-icon"].icon-mask,
|
|
490
|
+
:host-context(.-theme-with-dark-background) [is="ui-icon"].icon-mask {
|
|
487
491
|
--override-icon-mask-background-color: rgb(145 145 145);
|
|
488
492
|
}
|
|
489
493
|
|
|
490
|
-
[is=ui-icon]:not(.icon-mask) {
|
|
494
|
+
[is="ui-icon"]:not(.icon-mask) {
|
|
491
495
|
background-position: var(--spritesheet-position);
|
|
492
496
|
}
|
|
493
497
|
|
|
@@ -519,27 +523,27 @@ span[is=dt-icon-label] {
|
|
|
519
523
|
background-image: var(--image-file-popoverArrows);
|
|
520
524
|
}
|
|
521
525
|
|
|
522
|
-
.force-white-icons [is=ui-icon].spritesheet-smallicons,
|
|
523
|
-
:host-context(.force-white-icons) [is=ui-icon].spritesheet-smallicons,
|
|
524
|
-
[is=ui-icon].force-white-icons.spritesheet-smallicons,
|
|
526
|
+
.force-white-icons [is="ui-icon"].spritesheet-smallicons,
|
|
527
|
+
:host-context(.force-white-icons) [is="ui-icon"].spritesheet-smallicons,
|
|
528
|
+
[is="ui-icon"].force-white-icons.spritesheet-smallicons,
|
|
525
529
|
.-theme-preserve {
|
|
526
530
|
-webkit-mask-image: var(--image-file-smallIcons);
|
|
527
531
|
-webkit-mask-position: var(--spritesheet-position);
|
|
528
532
|
background: var(--override-force-white-icons-background) !important; /* stylelint-disable-line declaration-no-important */
|
|
529
533
|
}
|
|
530
534
|
|
|
531
|
-
.force-white-icons [is=ui-icon].spritesheet-largeicons,
|
|
532
|
-
:host-context(.force-white-icons) [is=ui-icon].spritesheet-largeicons,
|
|
533
|
-
[is=ui-icon].force-white-icons.spritesheet-largeicons,
|
|
535
|
+
.force-white-icons [is="ui-icon"].spritesheet-largeicons,
|
|
536
|
+
:host-context(.force-white-icons) [is="ui-icon"].spritesheet-largeicons,
|
|
537
|
+
[is="ui-icon"].force-white-icons.spritesheet-largeicons,
|
|
534
538
|
.-theme-preserve {
|
|
535
539
|
-webkit-mask-image: var(--image-file-largeIcons);
|
|
536
540
|
-webkit-mask-position: var(--spritesheet-position);
|
|
537
541
|
background: var(--override-force-white-icons-background) !important; /* stylelint-disable-line declaration-no-important */
|
|
538
542
|
}
|
|
539
543
|
|
|
540
|
-
.force-white-icons [is=ui-icon].spritesheet-mediumicons,
|
|
541
|
-
:host-context(.force-white-icons) [is=ui-icon].spritesheet-mediumicons,
|
|
542
|
-
[is=ui-icon].force-white-icons.spritesheet-mediumicons,
|
|
544
|
+
.force-white-icons [is="ui-icon"].spritesheet-mediumicons,
|
|
545
|
+
:host-context(.force-white-icons) [is="ui-icon"].spritesheet-mediumicons,
|
|
546
|
+
[is="ui-icon"].force-white-icons.spritesheet-mediumicons,
|
|
543
547
|
.-theme-preserve {
|
|
544
548
|
-webkit-mask-image: var(--image-file-mediumIcons);
|
|
545
549
|
-webkit-mask-position: var(--spritesheet-position);
|
|
@@ -631,30 +635,30 @@ button.link:focus-visible {
|
|
|
631
635
|
opacity: 100%;
|
|
632
636
|
}
|
|
633
637
|
|
|
634
|
-
[is=ui-icon].icon-mask,
|
|
635
|
-
.force-white-icons [is=ui-icon].spritesheet-smallicons,
|
|
636
|
-
:host-context(.force-white-icons) [is=ui-icon].spritesheet-smallicons,
|
|
637
|
-
[is=ui-icon].force-white-icons.spritesheet-smallicons,
|
|
638
|
-
.force-white-icons [is=ui-icon].spritesheet-largeicons,
|
|
639
|
-
:host-context(.force-white-icons) [is=ui-icon].spritesheet-largeicons,
|
|
640
|
-
[is=ui-icon].force-white-icons.spritesheet-largeicons,
|
|
641
|
-
.force-white-icons [is=ui-icon].spritesheet-mediumicons,
|
|
642
|
-
:host-context(.force-white-icons) [is=ui-icon].spritesheet-mediumicons,
|
|
643
|
-
[is=ui-icon].force-white-icons.spritesheet-mediumicons,
|
|
638
|
+
[is="ui-icon"].icon-mask,
|
|
639
|
+
.force-white-icons [is="ui-icon"].spritesheet-smallicons,
|
|
640
|
+
:host-context(.force-white-icons) [is="ui-icon"].spritesheet-smallicons,
|
|
641
|
+
[is="ui-icon"].force-white-icons.spritesheet-smallicons,
|
|
642
|
+
.force-white-icons [is="ui-icon"].spritesheet-largeicons,
|
|
643
|
+
:host-context(.force-white-icons) [is="ui-icon"].spritesheet-largeicons,
|
|
644
|
+
[is="ui-icon"].force-white-icons.spritesheet-largeicons,
|
|
645
|
+
.force-white-icons [is="ui-icon"].spritesheet-mediumicons,
|
|
646
|
+
:host-context(.force-white-icons) [is="ui-icon"].spritesheet-mediumicons,
|
|
647
|
+
[is="ui-icon"].force-white-icons.spritesheet-mediumicons,
|
|
644
648
|
.-theme-preserve {
|
|
645
649
|
forced-color-adjust: none;
|
|
646
650
|
background-color: ButtonText;
|
|
647
651
|
}
|
|
648
652
|
|
|
649
653
|
.harmony-input:not([type]),
|
|
650
|
-
.harmony-input[type=number],
|
|
651
|
-
.harmony-input[type=text] {
|
|
654
|
+
.harmony-input[type="number"],
|
|
655
|
+
.harmony-input[type="text"] {
|
|
652
656
|
border: 1px solid ButtonText;
|
|
653
657
|
}
|
|
654
658
|
|
|
655
659
|
.harmony-input:not([type]):focus,
|
|
656
|
-
.harmony-input[type=number]:focus,
|
|
657
|
-
.harmony-input[type=text]:focus {
|
|
660
|
+
.harmony-input[type="number"]:focus,
|
|
661
|
+
.harmony-input[type="text"]:focus {
|
|
658
662
|
border: 1px solid Highlight;
|
|
659
663
|
}
|
|
660
664
|
}
|
|
@@ -209,15 +209,15 @@
|
|
|
209
209
|
color: var(--color-link);
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
-
.devtools-link [is=ui-icon] {
|
|
212
|
+
.devtools-link [is="ui-icon"] {
|
|
213
213
|
vertical-align: middle;
|
|
214
214
|
}
|
|
215
215
|
|
|
216
|
-
.devtools-link [is=ui-icon].icon-mask {
|
|
216
|
+
.devtools-link [is="ui-icon"].icon-mask {
|
|
217
217
|
background-color: var(--color-link);
|
|
218
218
|
}
|
|
219
219
|
|
|
220
|
-
:focus .selected .devtools-link [is=ui-icon].icon-mask {
|
|
220
|
+
:focus .selected .devtools-link [is="ui-icon"].icon-mask {
|
|
221
221
|
background-color: var(--legacy-item-selection-bg-color);
|
|
222
222
|
}
|
|
223
223
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
overflow-y: auto;
|
|
12
12
|
min-width: 160px !important; /* stylelint-disable-line declaration-no-important */
|
|
13
13
|
/* NOTE: Keep padding in sync with padding adjustment in SoftContextMenu.js */
|
|
14
|
-
padding: 4px 0
|
|
14
|
+
padding: 4px 0;
|
|
15
15
|
border: 1px solid var(--color-details-hairline);
|
|
16
16
|
background-color: var(--color-background);
|
|
17
17
|
box-shadow: var(--drop-shadow);
|
|
@@ -44,6 +44,12 @@
|
|
|
44
44
|
white-space: nowrap;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
+
.soft-context-menu-item devtools-icon {
|
|
48
|
+
--icon-color: var(--color-text-secondary);
|
|
49
|
+
|
|
50
|
+
pointer-events: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
47
53
|
.soft-context-menu-disabled {
|
|
48
54
|
color: var(--color-text-disabled);
|
|
49
55
|
pointer-events: none;
|
|
@@ -66,6 +72,10 @@
|
|
|
66
72
|
color: var(--override-context-menu-hover-text-color);
|
|
67
73
|
}
|
|
68
74
|
|
|
75
|
+
.soft-context-menu-item-mouse-over devtools-icon {
|
|
76
|
+
--icon-color: var(--override-context-menu-hover-text-color);
|
|
77
|
+
}
|
|
78
|
+
|
|
69
79
|
.-theme-with-dark-background .soft-context-menu-item-mouse-over,
|
|
70
80
|
:host-context(.-theme-with-dark-background) .soft-context-menu-item-mouse-over {
|
|
71
81
|
--override-dark-mode-focus-color: #1a73e8;
|
|
@@ -233,6 +233,7 @@
|
|
|
233
233
|
--color-error-text: hsl(0deg 100% 75%);
|
|
234
234
|
--color-error-border: rgb(92 0 0);
|
|
235
235
|
--color-error-background: hsl(0deg 100% 8%);
|
|
236
|
+
--color-checkbox-accent-color: rgb(255 165 0);
|
|
236
237
|
/* Colors for styling inputs */
|
|
237
238
|
--color-input-outline: rgb(189 193 198);
|
|
238
239
|
--color-input-outline-active: rgb(138 180 248);
|
|
@@ -307,7 +307,7 @@ select.toolbar-item:focus-visible > * {
|
|
|
307
307
|
.toolbar-input {
|
|
308
308
|
width: 120px;
|
|
309
309
|
height: 19px;
|
|
310
|
-
padding: 4px 3px 3px
|
|
310
|
+
padding: 4px 3px 3px;
|
|
311
311
|
margin: 1px 3px;
|
|
312
312
|
background-color: var(--color-background);
|
|
313
313
|
border: 1px solid transparent;
|
|
@@ -389,18 +389,18 @@ select.toolbar-item:focus-visible > * {
|
|
|
389
389
|
left: -2px;
|
|
390
390
|
}
|
|
391
391
|
|
|
392
|
-
input[is=history-input] {
|
|
392
|
+
input[is="history-input"] {
|
|
393
393
|
border: 1px solid transparent;
|
|
394
394
|
line-height: 16px;
|
|
395
395
|
padding: 1px;
|
|
396
396
|
}
|
|
397
397
|
|
|
398
|
-
input[is=history-input]:hover {
|
|
398
|
+
input[is="history-input"]:hover {
|
|
399
399
|
box-shadow: var(--legacy-focus-ring-inactive-shadow);
|
|
400
400
|
}
|
|
401
401
|
|
|
402
|
-
input[is=history-input]:focus,
|
|
403
|
-
input[is=history-input]:not(:placeholder-shown) {
|
|
402
|
+
input[is="history-input"]:focus,
|
|
403
|
+
input[is="history-input"]:not(:placeholder-shown) {
|
|
404
404
|
box-shadow: var(--legacy-focus-ring-active-shadow);
|
|
405
405
|
}
|
|
406
406
|
|
|
@@ -470,7 +470,7 @@ devtools-icon.leading-issue-icon {
|
|
|
470
470
|
color: HighlightText;
|
|
471
471
|
}
|
|
472
472
|
|
|
473
|
-
.toolbar-button:disabled [is=ui-icon].icon-mask {
|
|
473
|
+
.toolbar-button:disabled [is="ui-icon"].icon-mask {
|
|
474
474
|
background-color: GrayText;
|
|
475
475
|
color: GrayText;
|
|
476
476
|
}
|
|
@@ -505,8 +505,8 @@ devtools-icon.leading-issue-icon {
|
|
|
505
505
|
:not(.toolbar-render-as-links) .toolbar-button:enabled:hover .toolbar-glyph,
|
|
506
506
|
:not(.toolbar-render-as-links) .toolbar-button:enabled:focus .toolbar-glyph,
|
|
507
507
|
:not(.toolbar-render-as-links) .toolbar-button:enabled:hover:not(:active) .toolbar-glyph,
|
|
508
|
-
.toolbar-button:enabled:hover [is=ui-icon].icon-mask,
|
|
509
|
-
.toolbar-button:enabled:focus [is=ui-icon].icon-mask {
|
|
508
|
+
.toolbar-button:enabled:hover [is="ui-icon"].icon-mask,
|
|
509
|
+
.toolbar-button:enabled:focus [is="ui-icon"].icon-mask {
|
|
510
510
|
background-color: HighlightText;
|
|
511
511
|
}
|
|
512
512
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
:host {
|
|
8
8
|
flex: 1 1 auto;
|
|
9
|
-
padding: 2px 0 0
|
|
9
|
+
padding: 2px 0 0;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.tree-outline-disclosure:not(.tree-outline-disclosure-hide-overflow) {
|
|
@@ -166,7 +166,7 @@ ol.tree-outline:not(.hide-selection-when-blurred) li.selected:focus * {
|
|
|
166
166
|
@media (forced-colors: active) {
|
|
167
167
|
.tree-outline-disclosure li.parent::before,
|
|
168
168
|
.tree-outline:not(.hide-selection-when-blurred) li.parent:not(.selected)::before,
|
|
169
|
-
.tree-outline li [is=ui-icon].icon-mask {
|
|
169
|
+
.tree-outline li [is="ui-icon"].icon-mask {
|
|
170
170
|
forced-color-adjust: none;
|
|
171
171
|
background-color: ButtonText;
|
|
172
172
|
}
|
|
@@ -200,8 +200,8 @@ ol.tree-outline:not(.hide-selection-when-blurred) li.selected:focus * {
|
|
|
200
200
|
background-color: transparent;
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
-
.tree-outline li.selected [is=ui-icon].icon-mask,
|
|
204
|
-
.tree-outline li.selected:focus [is=ui-icon]:not(.icon-mask) {
|
|
203
|
+
.tree-outline li.selected [is="ui-icon"].icon-mask,
|
|
204
|
+
.tree-outline li.selected:focus [is="ui-icon"]:not(.icon-mask) {
|
|
205
205
|
background-color: HighlightText !important; /* stylelint-disable-line declaration-no-important */
|
|
206
206
|
}
|
|
207
207
|
|
|
@@ -17,11 +17,11 @@ body.platform-linux {
|
|
|
17
17
|
|
|
18
18
|
body.platform-mac {
|
|
19
19
|
color: rgb(48 57 66);
|
|
20
|
-
font-family:
|
|
20
|
+
font-family: ".SFNSDisplay-Regular", "Helvetica Neue", "Lucida Grande", sans-serif;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
body.platform-windows {
|
|
24
|
-
font-family:
|
|
24
|
+
font-family: "Segoe UI", Tahoma, sans-serif;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.fill {
|
|
@@ -157,7 +157,7 @@ body {
|
|
|
157
157
|
margin-right: 2px;
|
|
158
158
|
width: 10px;
|
|
159
159
|
height: 10px;
|
|
160
|
-
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);
|
|
160
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==");
|
|
161
161
|
line-height: 10px;
|
|
162
162
|
}
|
|
163
163
|
|
|
@@ -61,12 +61,12 @@ body {
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
#resume-button .glyph {
|
|
64
|
-
-webkit-mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAAKCAYAAABv7tTEAAAAAXNSR0IArs4c6QAAAFJJREFUKM+10bEJgGAMBeEPbR3BLRzEVdzEVRzELRzBVohVwEJ+iODBlQfhBeJhsmHU4C0KnFjQV6J0x1SNAhdWDJUoPTB3PvLLeaUhypM3n3sD/qc7lDrdpIEAAAAASUVORK5CYII=);
|
|
64
|
+
-webkit-mask-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAAKCAYAAABv7tTEAAAAAXNSR0IArs4c6QAAAFJJREFUKM+10bEJgGAMBeEPbR3BLRzEVdzEVRzELRzBVohVwEJ+iODBlQfhBeJhsmHU4C0KnFjQV6J0x1SNAhdWDJUoPTB3PvLLeaUhypM3n3sD/qc7lDrdpIEAAAAASUVORK5CYII=");
|
|
65
65
|
-webkit-mask-size: 13px 10px;
|
|
66
66
|
background-color: rgb(66 129 235);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
#step-over-button .glyph {
|
|
70
|
-
-webkit-mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAKCAYAAAC5Sw6hAAAAAXNSR0IArs4c6QAAAOFJREFUKM+N0j8rhXEUB/DPcxW35CqhvIBrtqibkklhV8qkTHe4ZbdblcXgPVhuMdqUTUl5A2KRRCF5LGc4PT1P7qnfcr5/zu/8KdTHLFaxjHnc4RZXKI0QYxjgLQTVd42l/0wmg5iFX3iq5H6w22RS4DyRH7CB8cAXcBTGJT6xUmd0mEwuMdFQcA3fwXvGTAan8BrgPabTL9fRRyfx91PRMwyjGwcJ2EyCfsrfpPw2Pipz24NT/MZciiQYVshzOKnZ5Hturxt3k2MnCpS4SPkeHpPR8Sh3tYgttBoW9II2/AHiaEqvD2Fc0wAAAABJRU5ErkJggg==);
|
|
70
|
+
-webkit-mask-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAKCAYAAAC5Sw6hAAAAAXNSR0IArs4c6QAAAOFJREFUKM+N0j8rhXEUB/DPcxW35CqhvIBrtqibkklhV8qkTHe4ZbdblcXgPVhuMdqUTUl5A2KRRCF5LGc4PT1P7qnfcr5/zu/8KdTHLFaxjHnc4RZXKI0QYxjgLQTVd42l/0wmg5iFX3iq5H6w22RS4DyRH7CB8cAXcBTGJT6xUmd0mEwuMdFQcA3fwXvGTAan8BrgPabTL9fRRyfx91PRMwyjGwcJ2EyCfsrfpPw2Pipz24NT/MZciiQYVshzOKnZ5Hturxt3k2MnCpS4SPkeHpPR8Sh3tYgttBoW9II2/AHiaEqvD2Fc0wAAAABJRU5ErkJggg==");
|
|
71
71
|
-webkit-mask-size: 18px 10px;
|
|
72
72
|
}
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@ const INSPECTOR_OVERLAY_DIRECTORY = path.join(__dirname, '..', '..', '..', 'fron
|
|
|
16
16
|
const COMPONENT_DOCS_DIRECTORY = path.join(FRONT_END_DIRECTORY, 'ui', 'components', 'docs');
|
|
17
17
|
|
|
18
18
|
const CROSS_NAMESPACE_MESSAGE =
|
|
19
|
-
'Incorrect cross-namespace import: "{{
|
|
19
|
+
'Incorrect cross-namespace import: "{{importPathForErrorMessage}}". Use "import * as Namespace from \'../namespace/namespace.js\';" instead.';
|
|
20
20
|
|
|
21
21
|
// ------------------------------------------------------------------------------
|
|
22
22
|
// Rule Definition
|
|
@@ -42,7 +42,7 @@ function computeTopLevelFolder(fileName) {
|
|
|
42
42
|
return namespaceName.substring(0, namespaceName.indexOf(path.sep));
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
function checkImportExtension(importPath, context, node) {
|
|
45
|
+
function checkImportExtension(importPath, importPathForErrorMessage, context, node) {
|
|
46
46
|
// import * as fs from 'fs';
|
|
47
47
|
if (!importPath.startsWith('.')) {
|
|
48
48
|
return;
|
|
@@ -51,12 +51,12 @@ function checkImportExtension(importPath, context, node) {
|
|
|
51
51
|
if (!importPath.endsWith('.js') && !importPath.endsWith('.mjs')) {
|
|
52
52
|
context.report({
|
|
53
53
|
node,
|
|
54
|
-
message: 'Missing file extension for import "{{
|
|
54
|
+
message: 'Missing file extension for import "{{importPathForErrorMessage}}"',
|
|
55
55
|
data: {
|
|
56
|
-
|
|
56
|
+
importPathForErrorMessage,
|
|
57
57
|
},
|
|
58
58
|
fix(fixer) {
|
|
59
|
-
return fixer.replaceText(node.source, `'${
|
|
59
|
+
return fixer.replaceText(node.source, `'${importPathForErrorMessage}.js'`);
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
62
|
}
|
|
@@ -67,7 +67,7 @@ function nodeSpecifiersSpecialImportsOnly(specifiers) {
|
|
|
67
67
|
['ls', 'assertNotNullOrUndefined'].includes(specifiers[0].imported.name);
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
function checkStarImport(context, node, importPath, importingFileName, exportingFileName) {
|
|
70
|
+
function checkStarImport(context, node, importPath, importPathForErrorMessage, importingFileName, exportingFileName) {
|
|
71
71
|
if (isModuleEntrypoint(importingFileName)) {
|
|
72
72
|
return;
|
|
73
73
|
}
|
|
@@ -93,9 +93,9 @@ function checkStarImport(context, node, importPath, importingFileName, exporting
|
|
|
93
93
|
context.report({
|
|
94
94
|
node,
|
|
95
95
|
message:
|
|
96
|
-
'Incorrect same-namespace import: "{{
|
|
96
|
+
'Incorrect same-namespace import: "{{importPathForErrorMessage}}". Use "import { Symbol } from \'./relative-file.js\';" instead.',
|
|
97
97
|
data: {
|
|
98
|
-
|
|
98
|
+
importPathForErrorMessage,
|
|
99
99
|
},
|
|
100
100
|
});
|
|
101
101
|
}
|
|
@@ -104,9 +104,7 @@ function checkStarImport(context, node, importPath, importingFileName, exporting
|
|
|
104
104
|
context.report({
|
|
105
105
|
node,
|
|
106
106
|
message: CROSS_NAMESPACE_MESSAGE,
|
|
107
|
-
data: {
|
|
108
|
-
importPath,
|
|
109
|
-
},
|
|
107
|
+
data: {importPathForErrorMessage},
|
|
110
108
|
});
|
|
111
109
|
}
|
|
112
110
|
}
|
|
@@ -135,12 +133,14 @@ module.exports = {
|
|
|
135
133
|
}
|
|
136
134
|
const importPath = path.normalize(node.source.value);
|
|
137
135
|
|
|
138
|
-
|
|
136
|
+
const importPathForErrorMessage = node.source.value.replace(/\\/g, '/');
|
|
137
|
+
checkImportExtension(importPath, importPathForErrorMessage, context, node);
|
|
139
138
|
},
|
|
140
139
|
ImportDeclaration(node) {
|
|
141
|
-
checkImportExtension(node.source.value, context, node);
|
|
142
|
-
|
|
143
140
|
const importPath = path.normalize(node.source.value);
|
|
141
|
+
const importPathForErrorMessage = node.source.value.replace(/\\/g, '/');
|
|
142
|
+
|
|
143
|
+
checkImportExtension(node.source.value, importPathForErrorMessage, context, node);
|
|
144
144
|
|
|
145
145
|
// Accidental relative URL:
|
|
146
146
|
// import * as Root from 'front_end/root/root.js';
|
|
@@ -173,7 +173,8 @@ module.exports = {
|
|
|
173
173
|
|
|
174
174
|
const exportingFileName = path.resolve(path.dirname(importingFileName), importPath);
|
|
175
175
|
|
|
176
|
-
if (importPath.includes('/front_end/') && !importingFileIsUnitTestFile &&
|
|
176
|
+
if (importPath.replace(/\\/g, '/').includes('/front_end/') && !importingFileIsUnitTestFile &&
|
|
177
|
+
!importingFileIsComponentDocsFile) {
|
|
177
178
|
context.report({
|
|
178
179
|
node,
|
|
179
180
|
message:
|
|
@@ -181,14 +182,14 @@ module.exports = {
|
|
|
181
182
|
});
|
|
182
183
|
}
|
|
183
184
|
|
|
184
|
-
if (
|
|
185
|
+
if (importPathForErrorMessage.endsWith('platform/platform.js') &&
|
|
185
186
|
nodeSpecifiersSpecialImportsOnly(node.specifiers)) {
|
|
186
187
|
/* We allow direct importing of the ls and assertNotNull utility as it's so frequently used. */
|
|
187
188
|
return;
|
|
188
189
|
}
|
|
189
190
|
|
|
190
191
|
if (isStarAsImportSpecifier(node.specifiers)) {
|
|
191
|
-
checkStarImport(context, node, importPath, importingFileName, exportingFileName);
|
|
192
|
+
checkStarImport(context, node, importPath, importPathForErrorMessage, importingFileName, exportingFileName);
|
|
192
193
|
} else {
|
|
193
194
|
if (computeTopLevelFolder(importingFileName) !== computeTopLevelFolder(exportingFileName)) {
|
|
194
195
|
let message = CROSS_NAMESPACE_MESSAGE;
|
|
@@ -206,7 +207,7 @@ module.exports = {
|
|
|
206
207
|
node,
|
|
207
208
|
message,
|
|
208
209
|
data: {
|
|
209
|
-
|
|
210
|
+
importPathForErrorMessage,
|
|
210
211
|
},
|
|
211
212
|
});
|
|
212
213
|
} else if (isModuleEntrypoint(importingFileName)) {
|
|
@@ -222,9 +223,9 @@ module.exports = {
|
|
|
222
223
|
context.report({
|
|
223
224
|
node,
|
|
224
225
|
message:
|
|
225
|
-
'Incorrect same-namespace import: "{{
|
|
226
|
+
'Incorrect same-namespace import: "{{importPathForErrorMessage}}". Use "import * as File from \'./File.js\';" instead.',
|
|
226
227
|
data: {
|
|
227
|
-
|
|
228
|
+
importPathForErrorMessage,
|
|
228
229
|
}
|
|
229
230
|
});
|
|
230
231
|
}
|