chrome-devtools-frontend 1.0.1679704 → 1.0.1681498
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/AUTHORS +1 -0
- package/front_end/core/platform/TypescriptUtilities.ts +0 -9
- package/front_end/core/platform/platform.ts +1 -1
- package/front_end/core/sdk/ConsoleModel.ts +6 -3
- package/front_end/core/sdk/DOMModel.ts +110 -0
- package/front_end/core/sdk/EmulationModel.ts +4 -2
- package/front_end/core/sdk/NetworkManager.ts +15 -9
- package/front_end/core/sdk/OverlayModel.ts +3 -2
- package/front_end/core/sdk/PageResourceLoader.ts +4 -3
- package/front_end/core/sdk/RuntimeModel.ts +5 -3
- package/front_end/core/sdk/SDKSettings.ts +66 -0
- package/front_end/entrypoints/inspector_main/RenderingOptions.ts +4 -2
- package/front_end/entrypoints/inspector_main/inspector_main-meta.ts +32 -0
- package/front_end/entrypoints/main/MainImpl.ts +1 -1
- package/front_end/entrypoints/main/main-meta.ts +82 -0
- package/front_end/entrypoints/shell/shell.ts +0 -3
- package/front_end/entrypoints/trace_app/trace_app.ts +0 -3
- package/front_end/generated/InspectorBackendCommands.ts +3 -1
- package/front_end/generated/SupportedCSSProperties.ts +20 -0
- package/front_end/generated/protocol-mapping.d.ts +7 -0
- package/front_end/generated/protocol-proxy-api.d.ts +5 -0
- package/front_end/generated/protocol.ts +15 -3
- package/front_end/models/ai_code_completion/debug.ts +6 -3
- package/front_end/models/ai_code_generation/debug.ts +6 -3
- package/front_end/models/badges/UserBadges.ts +9 -2
- package/front_end/models/emulation/DeviceModeModel.ts +16 -27
- package/front_end/models/emulation/EmulatedDevices.ts +30 -125
- package/front_end/models/extensions/ExtensionAPI.ts +34 -23
- package/front_end/models/logs/NetworkLog.ts +3 -3
- package/front_end/models/logs/logs-meta.ts +0 -60
- package/front_end/models/persistence/NetworkPersistenceManager.ts +7 -1
- package/front_end/panels/application/ServiceWorkersView.ts +1 -1
- package/front_end/panels/application/StorageView.ts +2 -0
- package/front_end/panels/common/BadgeNotification.ts +1 -1
- package/front_end/panels/common/ExtensionPanel.ts +12 -7
- package/front_end/panels/common/ExtensionServer.ts +76 -16
- package/front_end/panels/common/GdpSignUpDialog.ts +1 -1
- package/front_end/panels/console/ConsoleView.ts +4 -2
- package/front_end/panels/console/ConsoleViewMessage.ts +3 -2
- package/front_end/panels/console/console-meta.ts +19 -5
- package/front_end/panels/elements/CSSRuleValidator.ts +12 -12
- package/front_end/panels/elements/CSSSpecificityBreakdown.ts +1 -1
- package/front_end/panels/elements/ClassesPaneWidget.ts +6 -6
- package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +1 -1
- package/front_end/panels/elements/ComputedStyleWidget.ts +4 -5
- package/front_end/panels/elements/DOMTreeContextMenu.ts +538 -0
- package/front_end/panels/elements/ElementIssueUtils.ts +20 -20
- package/front_end/panels/elements/ElementStatePaneWidget.ts +6 -6
- package/front_end/panels/elements/ElementsPanel.ts +10 -10
- package/front_end/panels/elements/ElementsTreeElement.ts +47 -514
- package/front_end/panels/elements/ElementsTreeOutline.ts +168 -297
- package/front_end/panels/elements/EventListenersWidget.ts +8 -8
- package/front_end/panels/elements/LayersWidget.ts +4 -4
- package/front_end/panels/elements/LayoutPane.ts +11 -11
- package/front_end/panels/elements/MarkerDecorator.ts +3 -3
- package/front_end/panels/elements/PlatformFontsWidget.ts +8 -8
- package/front_end/panels/elements/PropertiesWidget.ts +4 -4
- package/front_end/panels/elements/PropertyRenderer.ts +2 -2
- package/front_end/panels/elements/ShortcutTreeElement.ts +1 -1
- package/front_end/panels/elements/StylePropertiesSection.ts +14 -14
- package/front_end/panels/elements/StylePropertyTreeElement.ts +21 -21
- package/front_end/panels/elements/StylesSidebarPane.ts +14 -14
- package/front_end/panels/elements/components/AccessibilityTreeNode.ts +1 -1
- package/front_end/panels/elements/components/CSSHintDetailsView.ts +1 -1
- package/front_end/panels/elements/components/CSSVariableValueView.ts +3 -3
- package/front_end/panels/elements/components/ElementsBreadcrumbsUtils.ts +2 -2
- package/front_end/panels/elements/components/ElementsTreeExpandButton.ts +1 -1
- package/front_end/panels/elements/elements-meta.ts +13 -13
- package/front_end/panels/elements/elements.ts +3 -0
- package/front_end/panels/issues/AffectedCookiesView.ts +2 -0
- package/front_end/panels/issues/AffectedElementsView.ts +5 -0
- package/front_end/panels/issues/CorsIssueDetailsView.ts +13 -9
- package/front_end/panels/issues/IssueView.ts +7 -2
- package/front_end/panels/layer_viewer/LayerDetailsView.ts +11 -7
- package/front_end/panels/layer_viewer/LayerTreeOutline.ts +2 -0
- package/front_end/panels/mobile_throttling/NetworkPanelIndicator.ts +3 -1
- package/front_end/panels/network/NetworkConfigView.ts +2 -1
- package/front_end/panels/network/NetworkLogView.ts +5 -2
- package/front_end/panels/network/NetworkOverview.ts +11 -5
- package/front_end/panels/network/NetworkPanel.ts +3 -2
- package/front_end/panels/network/NetworkWaterfallColumn.ts +16 -3
- package/front_end/panels/network/RequestHeadersView.ts +4 -4
- package/front_end/panels/network/components/ResponseHeaderSection.ts +6 -2
- package/front_end/panels/network/network-meta.ts +117 -0
- package/front_end/panels/profiler/HeapDetachedElementsDataGrid.ts +2 -1
- package/front_end/panels/profiler/ProfileLauncherView.ts +19 -16
- package/front_end/panels/profiler/ProfileSidebarTreeElement.ts +1 -1
- package/front_end/panels/security/security.ts +6 -0
- package/front_end/panels/settings/components/SyncSection.ts +1 -1
- package/front_end/panels/settings/emulation/DevicesSettingsTab.ts +0 -3
- package/front_end/panels/sources/NavigatorView.ts +6 -2
- package/front_end/panels/sources/SourcesNavigator.ts +8 -4
- package/front_end/panels/sources/SourcesPanel.ts +4 -2
- package/front_end/panels/sources/SourcesSearchScope.ts +3 -1
- package/front_end/panels/sources/SourcesView.ts +8 -107
- package/front_end/panels/sources/TabbedEditorContainer.ts +110 -7
- package/front_end/panels/sources/UISourceCodeFrame.ts +2 -2
- package/front_end/panels/sources/sources-meta.ts +16 -0
- package/front_end/panels/timeline/TimelineLoader.ts +1 -1
- package/front_end/panels/timeline/TimelineUIUtils.ts +6 -0
- package/front_end/panels/timeline/components/LayoutShiftDetails.ts +4 -3
- package/front_end/panels/timeline/components/LiveMetricsView.ts +1 -1
- package/front_end/panels/timeline/components/MetricCard.ts +4 -3
- package/front_end/panels/timeline/components/NetworkRequestDetails.ts +5 -2
- package/front_end/panels/timeline/components/TimelineRangeSummaryView.ts +1 -1
- package/front_end/panels/timeline/components/TimelineSummary.ts +8 -5
- package/front_end/panels/web_audio/WebAudioView.ts +8 -0
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/web-vitals/rebuild.sh +1 -1
- package/front_end/ui/legacy/TabbedPane.ts +34 -2
- package/front_end/ui/legacy/components/color_picker/ContrastDetails.ts +11 -11
- package/front_end/ui/legacy/components/color_picker/FormatPickerContextMenu.ts +1 -1
- package/front_end/ui/legacy/components/color_picker/Spectrum.ts +19 -20
- package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +2 -2
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +164 -325
- package/front_end/ui/legacy/components/quick_open/CommandMenu.ts +5 -5
- package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +7 -7
- package/front_end/ui/legacy/components/quick_open/QuickOpen.ts +1 -1
- package/front_end/ui/legacy/components/quick_open/quick_open-meta.ts +2 -2
- package/front_end/ui/visual_logging/KnownContextValues.ts +40 -0
- package/mcp/mcp.ts +0 -3
- package/package.json +1 -1
- package/front_end/core/sdk/sdk-meta.ts +0 -178
- package/front_end/models/badges/badges-meta.ts +0 -27
- package/front_end/models/persistence/persistence-meta.ts +0 -69
|
@@ -43,35 +43,35 @@ const {bindToAction, bindToSetting} = UI.UIUtils;
|
|
|
43
43
|
|
|
44
44
|
const UIStrings = {
|
|
45
45
|
/**
|
|
46
|
-
* @description Title of show framework listeners setting in
|
|
46
|
+
* @description Title of show framework listeners setting in the Event listeners tab of the Elements panel.
|
|
47
47
|
*/
|
|
48
48
|
frameworkListeners: 'Resolve `Framework` listeners',
|
|
49
49
|
/**
|
|
50
|
-
* @description Tooltip text that appears on the setting when hovering over it in Event
|
|
50
|
+
* @description Tooltip text that appears on the setting when hovering over it in the Event listeners tab of the Elements panel.
|
|
51
51
|
*/
|
|
52
52
|
showListenersOnTheAncestors: 'Show listeners on the ancestors',
|
|
53
53
|
/**
|
|
54
|
-
* @description Alternative title text of a setting in Event
|
|
54
|
+
* @description Alternative title text of a setting in the Event listeners tab of the Elements panel.
|
|
55
55
|
*/
|
|
56
56
|
ancestors: 'Ancestors',
|
|
57
57
|
/**
|
|
58
|
-
* @description Title of dispatch filter in
|
|
58
|
+
* @description Title of dispatch filter in the Event listeners tab of the Elements panel.
|
|
59
59
|
*/
|
|
60
60
|
eventListenersCategory: 'Event listeners category',
|
|
61
61
|
/**
|
|
62
|
-
* @description Text for everything
|
|
62
|
+
* @description Text for everything.
|
|
63
63
|
*/
|
|
64
64
|
all: 'All',
|
|
65
65
|
/**
|
|
66
|
-
* @description Text in Event
|
|
66
|
+
* @description Text in the Event listeners tab of the Elements panel.
|
|
67
67
|
*/
|
|
68
68
|
passive: 'Passive',
|
|
69
69
|
/**
|
|
70
|
-
* @description Text in Event
|
|
70
|
+
* @description Text in the Event listeners tab of the Elements panel.
|
|
71
71
|
*/
|
|
72
72
|
blocking: 'Blocking',
|
|
73
73
|
/**
|
|
74
|
-
* @description Tooltip text that appears on the setting when hovering over it in Event
|
|
74
|
+
* @description Tooltip text that appears on the setting when hovering over it in the Event listeners tab of the Elements panel.
|
|
75
75
|
*/
|
|
76
76
|
resolveEventListenersBoundWith: 'Resolve event listeners bound with framework',
|
|
77
77
|
} as const;
|
|
@@ -18,15 +18,15 @@ const {render, html, Directives: {ref}} = Lit;
|
|
|
18
18
|
|
|
19
19
|
const UIStrings = {
|
|
20
20
|
/**
|
|
21
|
-
* @description Title of a section in the
|
|
21
|
+
* @description Title of a section in the Layers tab of the Elements panel.
|
|
22
22
|
* The widget shows the layers present in the context of the currently selected node.
|
|
23
|
-
|
|
23
|
+
*/
|
|
24
24
|
cssLayersTitle: 'CSS layers',
|
|
25
25
|
/**
|
|
26
|
-
* @description Tooltip text in
|
|
26
|
+
* @description Tooltip text in the Layers tab of the Elements panel.
|
|
27
27
|
* For a button that opens a tool that shows the layers present in the current document.
|
|
28
28
|
*/
|
|
29
|
-
toggleCSSLayers: 'Toggle CSS
|
|
29
|
+
toggleCSSLayers: 'Toggle CSS layers view',
|
|
30
30
|
} as const;
|
|
31
31
|
const str_ = i18n.i18n.registerUIStrings('panels/elements/LayersWidget.ts', UIStrings);
|
|
32
32
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
@@ -18,39 +18,39 @@ import layoutPaneStyles from './layoutPane.css.js';
|
|
|
18
18
|
|
|
19
19
|
const UIStrings = {
|
|
20
20
|
/**
|
|
21
|
-
* @description Title of the input to select the overlay color for an element using the color picker
|
|
21
|
+
* @description Title of the input to select the overlay color for an element using the color picker.
|
|
22
22
|
*/
|
|
23
23
|
chooseElementOverlayColor: 'Choose the overlay color for this element',
|
|
24
24
|
/**
|
|
25
|
-
* @description Title of the show element button in the Layout
|
|
25
|
+
* @description Title of the show element button in the Layout tab of the Elements panel.
|
|
26
26
|
*/
|
|
27
27
|
showElementInTheElementsPanel: 'Show element in the Elements panel',
|
|
28
28
|
/**
|
|
29
|
-
* @description Title of a section on CSS Grid/Grid Lanes tooling
|
|
29
|
+
* @description Title of a section on CSS Grid/Grid Lanes tooling.
|
|
30
30
|
*/
|
|
31
|
-
gridOrGridLanes: 'Grid /
|
|
31
|
+
gridOrGridLanes: 'Grid / grid lanes',
|
|
32
32
|
/**
|
|
33
|
-
* @description Title of a section in the Layout
|
|
33
|
+
* @description Title of a section in the Layout tab of the Elements panel.
|
|
34
34
|
*/
|
|
35
35
|
overlayDisplaySettings: 'Overlay display settings',
|
|
36
36
|
/**
|
|
37
|
-
* @description Title of a section in Layout
|
|
37
|
+
* @description Title of a section in the Layout tab of the Elements panel.
|
|
38
38
|
*/
|
|
39
|
-
gridOrGridLanesOverlays: 'Grid /
|
|
39
|
+
gridOrGridLanesOverlays: 'Grid / grid lanes overlays',
|
|
40
40
|
/**
|
|
41
|
-
* @description Message in the Layout
|
|
41
|
+
* @description Message in the Layout tab informing users that no CSS Grid/Grid Lanes layouts were found on the page.
|
|
42
42
|
*/
|
|
43
43
|
noGridOrGridLanesLayoutsFoundOnThisPage: 'No grid or grid lanes layouts found on this page',
|
|
44
44
|
/**
|
|
45
|
-
* @description Title of the Flexbox section in the Layout panel
|
|
45
|
+
* @description Title of the Flexbox section in the Layout tab of the Elements panel.
|
|
46
46
|
*/
|
|
47
47
|
flexbox: 'Flexbox',
|
|
48
48
|
/**
|
|
49
|
-
* @description Title of a section in the Layout panel
|
|
49
|
+
* @description Title of a section in the Layout tab of the Elements panel.
|
|
50
50
|
*/
|
|
51
51
|
flexboxOverlays: 'Flexbox overlays',
|
|
52
52
|
/**
|
|
53
|
-
* @description Text in the Layout
|
|
53
|
+
* @description Text in the Layout tab, when no flexbox elements are found.
|
|
54
54
|
*/
|
|
55
55
|
noFlexboxLayoutsFoundOnThisPage: 'No flexbox layouts found on this page',
|
|
56
56
|
/**
|
|
@@ -10,11 +10,11 @@ import {PseudoStateMarkerDecorator} from './ElementsPanel.js';
|
|
|
10
10
|
|
|
11
11
|
const UIStrings = {
|
|
12
12
|
/**
|
|
13
|
-
* @description Title of
|
|
13
|
+
* @description Title of a marker decorator in the Elements panel.
|
|
14
14
|
*/
|
|
15
|
-
domBreakpoint: 'DOM
|
|
15
|
+
domBreakpoint: 'DOM breakpoint',
|
|
16
16
|
/**
|
|
17
|
-
* @description Title of
|
|
17
|
+
* @description Title of a marker decorator in the Elements panel.
|
|
18
18
|
*/
|
|
19
19
|
elementIsHidden: 'Element is hidden',
|
|
20
20
|
} as const;
|
|
@@ -12,31 +12,31 @@ import platformFontsWidgetStyles from './platformFontsWidget.css.js';
|
|
|
12
12
|
|
|
13
13
|
const UIStrings = {
|
|
14
14
|
/**
|
|
15
|
-
* @description Section title text content in
|
|
15
|
+
* @description Section title text content in the Rendered Fonts section of the Computed styles tab in the Elements panel.
|
|
16
16
|
*/
|
|
17
|
-
renderedFonts: 'Rendered
|
|
17
|
+
renderedFonts: 'Rendered fonts',
|
|
18
18
|
/**
|
|
19
|
-
* @description Font property title text content in
|
|
19
|
+
* @description Font property title text content in the Rendered Fonts section of the Computed styles tab in the Elements panel. Refers to the CSS `font-family` property (https://developer.mozilla.org/en-US/docs/Web/CSS/font-family).
|
|
20
20
|
*/
|
|
21
21
|
familyName: 'Family name',
|
|
22
22
|
/**
|
|
23
|
-
* @description Font property title text content in
|
|
23
|
+
* @description Font property title text content in the Rendered Fonts section of the Computed styles tab in the Elements panel.
|
|
24
24
|
*/
|
|
25
25
|
postScriptName: 'PostScript name',
|
|
26
26
|
/**
|
|
27
|
-
* @description Font property title text content in
|
|
27
|
+
* @description Font property title text content in the Rendered Fonts section of the Computed styles tab in the Elements panel.
|
|
28
28
|
*/
|
|
29
29
|
fontOrigin: 'Font origin',
|
|
30
30
|
/**
|
|
31
|
-
* @description Text in
|
|
31
|
+
* @description Text in the Rendered Fonts section of the Computed styles tab in the Elements panel.
|
|
32
32
|
*/
|
|
33
33
|
networkResource: 'Network resource',
|
|
34
34
|
/**
|
|
35
|
-
* @description Text in
|
|
35
|
+
* @description Text in the Rendered Fonts section of the Computed styles tab in the Elements panel.
|
|
36
36
|
*/
|
|
37
37
|
localFile: 'Local file',
|
|
38
38
|
/**
|
|
39
|
-
* @description Text in
|
|
39
|
+
* @description Text in the Rendered Fonts section of the Computed styles tab in the Elements panel. Indicates a number of glyphs (characters).
|
|
40
40
|
*/
|
|
41
41
|
dGlyphs: '{n, plural, =1 {(# glyph)} other {(# glyphs)}}',
|
|
42
42
|
} as const;
|
|
@@ -53,14 +53,14 @@ const {repeat} = Directives;
|
|
|
53
53
|
const UIStrings = {
|
|
54
54
|
/**
|
|
55
55
|
* @description Text on the checkbox in the Properties tab of the Elements panel, which controls whether
|
|
56
|
-
* all properties of the currently selected DOM element are shown, or only meaningful properties (
|
|
57
|
-
* excluding properties whose values
|
|
56
|
+
* all properties of the currently selected DOM element are shown, or only meaningful properties (for example,
|
|
57
|
+
* excluding properties whose values are not set).
|
|
58
58
|
*/
|
|
59
59
|
showAll: 'Show all',
|
|
60
60
|
/**
|
|
61
61
|
* @description Tooltip on the checkbox in the Properties tab of the Elements panel, which controls whether
|
|
62
|
-
* all properties of the currently selected DOM element are shown, or only meaningful properties (
|
|
63
|
-
* excluding properties whose values
|
|
62
|
+
* all properties of the currently selected DOM element are shown, or only meaningful properties (for example,
|
|
63
|
+
* excluding properties whose values are not set).
|
|
64
64
|
*/
|
|
65
65
|
showAllTooltip: 'When unchecked, only properties whose values are neither null nor undefined will be shown',
|
|
66
66
|
/**
|
|
@@ -17,12 +17,12 @@ import {unescapeCssString} from './StylesSidebarPane.js';
|
|
|
17
17
|
|
|
18
18
|
const UIStrings = {
|
|
19
19
|
/**
|
|
20
|
-
* @description Text that is announced by the screen reader when the user focuses on an input field for entering the name of a CSS property in the Styles panel
|
|
20
|
+
* @description Text that is announced by the screen reader when the user focuses on an input field for entering the name of a CSS property in the Styles tab of the Elements panel.
|
|
21
21
|
* @example {margin} PH1
|
|
22
22
|
*/
|
|
23
23
|
cssPropertyName: '`CSS` property name: {PH1}',
|
|
24
24
|
/**
|
|
25
|
-
* @description Text that is announced by the screen reader when the user focuses on an input field for entering the value of a CSS property in the Styles panel
|
|
25
|
+
* @description Text that is announced by the screen reader when the user focuses on an input field for entering the value of a CSS property in the Styles tab of the Elements panel.
|
|
26
26
|
* @example {10px} PH1
|
|
27
27
|
*/
|
|
28
28
|
cssPropertyValue: '`CSS` property value: {PH1}',
|
|
@@ -47,7 +47,7 @@ const {html, render} = Lit;
|
|
|
47
47
|
|
|
48
48
|
const UIStrings = {
|
|
49
49
|
/**
|
|
50
|
-
* @description Link text content in
|
|
50
|
+
* @description Link text content in the DOM tree outline of the Elements panel.
|
|
51
51
|
*/
|
|
52
52
|
reveal: 'reveal',
|
|
53
53
|
} as const;
|
|
@@ -67,61 +67,61 @@ import type {StylesContainer} from './StylesContainer.js';
|
|
|
67
67
|
|
|
68
68
|
const UIStrings = {
|
|
69
69
|
/**
|
|
70
|
-
* @description Tooltip text that appears when hovering over the
|
|
70
|
+
* @description Tooltip text that appears when hovering over the add button in the Styles tab of the Elements panel.
|
|
71
71
|
*/
|
|
72
72
|
insertStyleRuleBelow: 'Insert style rule below',
|
|
73
73
|
/**
|
|
74
|
-
* @description Text in Styles
|
|
74
|
+
* @description Text in the Styles tab of the Elements panel.
|
|
75
75
|
*/
|
|
76
76
|
constructedStylesheet: 'constructed stylesheet',
|
|
77
77
|
/**
|
|
78
|
-
* @description Text in Styles
|
|
78
|
+
* @description Text in the Styles tab of the Elements panel.
|
|
79
79
|
*/
|
|
80
80
|
userAgentStylesheet: 'user agent stylesheet',
|
|
81
81
|
/**
|
|
82
|
-
* @description Text in Styles
|
|
82
|
+
* @description Text in the Styles tab of the Elements panel.
|
|
83
83
|
*/
|
|
84
84
|
injectedStylesheet: 'injected stylesheet',
|
|
85
85
|
/**
|
|
86
|
-
* @description Text in Styles
|
|
86
|
+
* @description Text in the Styles tab of the Elements panel.
|
|
87
87
|
*/
|
|
88
88
|
viaInspector: 'via inspector',
|
|
89
89
|
/**
|
|
90
|
-
* @description Text in Styles
|
|
90
|
+
* @description Text in the Styles tab of the Elements panel.
|
|
91
91
|
*/
|
|
92
92
|
styleAttribute: '`style` attribute',
|
|
93
93
|
/**
|
|
94
|
-
* @description Text in Styles
|
|
94
|
+
* @description Text in the Styles tab of the Elements panel.
|
|
95
95
|
* @example {html} PH1
|
|
96
96
|
*/
|
|
97
97
|
sattributesStyle: '{PH1}[Attributes Style]',
|
|
98
98
|
/**
|
|
99
|
-
* @description Show all button text content in Styles
|
|
99
|
+
* @description Show all button text content in the Styles tab of the Elements panel.
|
|
100
100
|
* @example {3} PH1
|
|
101
101
|
*/
|
|
102
102
|
showAllPropertiesSMore: 'Show all properties ({PH1} more)',
|
|
103
103
|
/**
|
|
104
|
-
* @description Text in
|
|
104
|
+
* @description Text in the DOM tree of the Elements panel, copy should be used as a verb.
|
|
105
105
|
*/
|
|
106
106
|
copySelector: 'Copy `selector`',
|
|
107
107
|
/**
|
|
108
|
-
* @description A context menu item in Styles panel to copy CSS rule
|
|
108
|
+
* @description A context menu item in the Styles tab of the Elements panel to copy CSS rule.
|
|
109
109
|
*/
|
|
110
110
|
copyRule: 'Copy rule',
|
|
111
111
|
/**
|
|
112
|
-
* @description A context menu item in Styles panel to copy all CSS declarations
|
|
112
|
+
* @description A context menu item in the Styles tab of the Elements panel to copy all CSS declarations.
|
|
113
113
|
*/
|
|
114
114
|
copyAllDeclarations: 'Copy all declarations',
|
|
115
115
|
/**
|
|
116
|
-
* @description Text that is announced by the screen reader when the user focuses on an input field for editing the name of a CSS selector in the Styles panel
|
|
116
|
+
* @description Text that is announced by the screen reader when the user focuses on an input field for editing the name of a CSS selector in the Styles tab of the Elements panel.
|
|
117
117
|
*/
|
|
118
118
|
cssSelector: '`CSS` selector',
|
|
119
119
|
/**
|
|
120
|
-
* @description Accessibility label for the button that expands a collapsed CSS rule in the Styles
|
|
120
|
+
* @description Accessibility label for the button that expands a collapsed CSS rule in the Styles tab.
|
|
121
121
|
*/
|
|
122
122
|
expandCollapsedRule: 'Expand collapsed rule',
|
|
123
123
|
/**
|
|
124
|
-
* @description Accessibility label for the button that collapses an expanded CSS rule in the Styles
|
|
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
127
|
} as const;
|
|
@@ -58,44 +58,44 @@ const {widget} = UI.Widget;
|
|
|
58
58
|
|
|
59
59
|
const UIStrings = {
|
|
60
60
|
/**
|
|
61
|
-
* @description Text in
|
|
61
|
+
* @description Text in the color swatch popover icon of the Elements panel.
|
|
62
62
|
*/
|
|
63
63
|
shiftClickToChangeColorFormat: 'Shift + Click to change color format.',
|
|
64
64
|
/**
|
|
65
|
-
* @description Swatch icon element title in
|
|
65
|
+
* @description Swatch icon element title in the color swatch popover icon of the Elements panel.
|
|
66
66
|
* @example {Shift + Click to change color format.} PH1
|
|
67
67
|
*/
|
|
68
68
|
openColorPickerS: 'Open color picker. {PH1}',
|
|
69
69
|
/**
|
|
70
|
-
* @description Context menu item for style property in edit mode
|
|
70
|
+
* @description Context menu item for style property in edit mode.
|
|
71
71
|
*/
|
|
72
72
|
togglePropertyAndContinueEditing: 'Toggle property and continue editing',
|
|
73
73
|
/**
|
|
74
|
-
* @description Context menu item for style property in edit mode
|
|
74
|
+
* @description Context menu item for style property in edit mode.
|
|
75
75
|
*/
|
|
76
76
|
openInSourcesPanel: 'Open in Sources panel',
|
|
77
77
|
/**
|
|
78
|
-
* @description A context menu item in Styles panel to copy CSS declaration
|
|
78
|
+
* @description A context menu item in the Styles tab of the Elements panel to copy CSS declaration.
|
|
79
79
|
*/
|
|
80
80
|
copyDeclaration: 'Copy declaration',
|
|
81
81
|
/**
|
|
82
|
-
* @description A context menu item in Styles panel to copy CSS property
|
|
82
|
+
* @description A context menu item in the Styles tab of the Elements panel to copy CSS property.
|
|
83
83
|
*/
|
|
84
84
|
copyProperty: 'Copy property',
|
|
85
85
|
/**
|
|
86
|
-
* @description A context menu item in the Watch
|
|
86
|
+
* @description A context menu item in the Watch expressions sidebar of the Sources panel and Network panel request.
|
|
87
87
|
*/
|
|
88
88
|
copyValue: 'Copy value',
|
|
89
89
|
/**
|
|
90
|
-
* @description A context menu item in Styles panel to copy CSS rule
|
|
90
|
+
* @description A context menu item in the Styles tab of the Elements panel to copy CSS rule.
|
|
91
91
|
*/
|
|
92
92
|
copyRule: 'Copy rule',
|
|
93
93
|
/**
|
|
94
|
-
* @description A context menu item in Styles panel to copy all CSS declarations
|
|
94
|
+
* @description A context menu item in the Styles tab of the Elements panel to copy all CSS declarations.
|
|
95
95
|
*/
|
|
96
96
|
copyAllDeclarations: 'Copy all declarations',
|
|
97
97
|
/**
|
|
98
|
-
* @description A context menu item in Styles panel to view the computed CSS property value.
|
|
98
|
+
* @description A context menu item in the Styles tab of the Elements panel to view the computed CSS property value.
|
|
99
99
|
*/
|
|
100
100
|
viewComputedValue: 'View computed value',
|
|
101
101
|
/**
|
|
@@ -107,41 +107,41 @@ const UIStrings = {
|
|
|
107
107
|
*/
|
|
108
108
|
openAnimationsPanel: 'Open Animations panel',
|
|
109
109
|
/**
|
|
110
|
-
* @description Title of the button that opens the flexbox editor in the Styles panel.
|
|
110
|
+
* @description Title of the button that opens the flexbox editor in the Styles tab of the Elements panel.
|
|
111
111
|
*/
|
|
112
112
|
flexboxEditorButton: 'Open `flexbox` editor',
|
|
113
113
|
/**
|
|
114
|
-
* @description Title of the button that opens the CSS Grid editor in the Styles panel.
|
|
114
|
+
* @description Title of the button that opens the CSS Grid editor in the Styles tab of the Elements panel.
|
|
115
115
|
*/
|
|
116
116
|
gridEditorButton: 'Open `grid` editor',
|
|
117
117
|
/**
|
|
118
|
-
* @description Title of the button that opens the CSS Grid Lanes editor in the Styles panel.
|
|
118
|
+
* @description Title of the button that opens the CSS Grid Lanes editor in the Styles tab of the Elements panel.
|
|
119
119
|
*/
|
|
120
120
|
gridLanesEditorButton: 'Open `grid-lanes` editor',
|
|
121
121
|
/**
|
|
122
|
-
* @description A context menu item in Styles panel to copy CSS declaration as JavaScript property.
|
|
122
|
+
* @description A context menu item in the Styles tab of the Elements panel to copy CSS declaration as JavaScript property.
|
|
123
123
|
*/
|
|
124
124
|
copyCssDeclarationAsJs: 'Copy declaration as JS',
|
|
125
125
|
/**
|
|
126
|
-
* @description A context menu item in Styles panel to copy all declarations of CSS rule as JavaScript properties.
|
|
126
|
+
* @description A context menu item in the Styles tab of the Elements panel to copy all declarations of CSS rule as JavaScript properties.
|
|
127
127
|
*/
|
|
128
128
|
copyAllCssDeclarationsAsJs: 'Copy all declarations as JS',
|
|
129
129
|
/**
|
|
130
|
-
* @description Title of the link in Styles panel to jump to the Animations panel.
|
|
130
|
+
* @description Title of the link in the Styles tab of the Elements panel to jump to the Animations panel.
|
|
131
131
|
*/
|
|
132
132
|
jumpToAnimationsPanel: 'Jump to Animations panel',
|
|
133
133
|
/**
|
|
134
|
-
* @description Text displayed in a tooltip shown when hovering over a CSS property value references a name that
|
|
135
|
-
* defined and
|
|
134
|
+
* @description Text displayed in a tooltip shown when hovering over a CSS property value references a name that is not
|
|
135
|
+
* defined and cannot be linked to.
|
|
136
136
|
* @example {--my-linkable-name} PH1
|
|
137
137
|
*/
|
|
138
138
|
sIsNotDefined: '{PH1} is not defined',
|
|
139
139
|
/**
|
|
140
|
-
* @description Text in Styles
|
|
140
|
+
* @description Text in the Styles tab of the Elements panel.
|
|
141
141
|
*/
|
|
142
142
|
invalidPropertyValue: 'Invalid property value',
|
|
143
143
|
/**
|
|
144
|
-
* @description Text in Styles
|
|
144
|
+
* @description Text in the Styles tab of the Elements panel.
|
|
145
145
|
*/
|
|
146
146
|
unknownPropertyName: 'Unknown property name',
|
|
147
147
|
/**
|
|
@@ -152,7 +152,7 @@ const UIStrings = {
|
|
|
152
152
|
*/
|
|
153
153
|
invalidString: '{PH1}, property name: {PH2}, property value: {PH3}',
|
|
154
154
|
/**
|
|
155
|
-
* @description Title in the
|
|
155
|
+
* @description Title in the Styles tab for the icon button for jumping to the anchor node.
|
|
156
156
|
*/
|
|
157
157
|
jumpToAnchorNode: 'Jump to anchor node',
|
|
158
158
|
} as const;
|
|
@@ -83,56 +83,55 @@ import {WebCustomData} from './WebCustomData.js';
|
|
|
83
83
|
|
|
84
84
|
const UIStrings = {
|
|
85
85
|
/**
|
|
86
|
-
* @description No matches element text content in Styles
|
|
86
|
+
* @description No matches element text content in the Styles tab of the Elements panel.
|
|
87
87
|
*/
|
|
88
88
|
noMatchingSelectorOrStyle: 'No matching selector or style',
|
|
89
89
|
/**
|
|
90
|
-
*
|
|
91
|
-
* @description Text to announce the result of the filter input in the Styles Sidebar Pane of the Elements panel
|
|
90
|
+
* @description Text to announce the result of the filter input in the Styles tab of the Elements panel.
|
|
92
91
|
*/
|
|
93
92
|
visibleSelectors: '{n, plural, =1 {# visible selector listed below} other {# visible selectors listed below}}',
|
|
94
93
|
/**
|
|
95
|
-
* @description Separator element text content in Styles
|
|
94
|
+
* @description Separator element text content in the Styles tab of the Elements panel.
|
|
96
95
|
* @example {scrollbar-corner} PH1
|
|
97
96
|
*/
|
|
98
97
|
pseudoSElement: 'Pseudo ::{PH1} element',
|
|
99
98
|
/**
|
|
100
|
-
* @description Text of a DOM element in Styles
|
|
99
|
+
* @description Text of a DOM element in the Styles tab of the Elements panel.
|
|
101
100
|
*/
|
|
102
101
|
inheritedFroms: 'Inherited from ',
|
|
103
102
|
/**
|
|
104
|
-
* @description Text of an inherited pseudo element in Styles
|
|
103
|
+
* @description Text of an inherited pseudo element in the Styles tab of the Elements panel.
|
|
105
104
|
* @example {highlight} PH1
|
|
106
105
|
*/
|
|
107
106
|
inheritedFromSPseudoOf: 'Inherited from ::{PH1} pseudo of ',
|
|
108
107
|
/**
|
|
109
|
-
* @description
|
|
108
|
+
* @description Tooltip for color values in the Styles tab of the Elements panel.
|
|
110
109
|
* @example {Ctrl} PH1
|
|
111
110
|
* @example {Alt} PH2
|
|
112
111
|
*/
|
|
113
112
|
incrementdecrementWithMousewheelOne:
|
|
114
113
|
'Increment/decrement with mousewheel or up/down keys. {PH1}: R ±1, Shift: G ±1, {PH2}: B ±1',
|
|
115
114
|
/**
|
|
116
|
-
* @description
|
|
115
|
+
* @description Tooltip for color values in the Styles tab of the Elements panel.
|
|
117
116
|
* @example {Ctrl} PH1
|
|
118
117
|
* @example {Alt} PH2
|
|
119
118
|
*/
|
|
120
119
|
incrementdecrementWithMousewheelHundred:
|
|
121
120
|
'Increment/decrement with mousewheel or up/down keys. {PH1}: ±100, Shift: ±10, {PH2}: ±0.1',
|
|
122
121
|
/**
|
|
123
|
-
* @description Tooltip text that appears when hovering over the rendering button in the Styles
|
|
122
|
+
* @description Tooltip text that appears when hovering over the rendering button in the Styles tab of the Elements panel.
|
|
124
123
|
*/
|
|
125
124
|
toggleRenderingEmulations: 'Toggle common rendering emulations',
|
|
126
125
|
/**
|
|
127
|
-
* @description Rendering emulation option for toggling the automatic dark mode
|
|
126
|
+
* @description Rendering emulation option for toggling the automatic dark mode.
|
|
128
127
|
*/
|
|
129
128
|
automaticDarkMode: 'Automatic dark mode',
|
|
130
129
|
/**
|
|
131
|
-
* @description Text displayed on layer separators in the
|
|
130
|
+
* @description Text displayed on layer separators in the Styles tab of the Elements panel.
|
|
132
131
|
*/
|
|
133
132
|
layer: 'Layer',
|
|
134
133
|
/**
|
|
135
|
-
* @description Tooltip text for the link in the
|
|
134
|
+
* @description Tooltip text for the link in the layer separators that reveals the layer in the layer tree view.
|
|
136
135
|
*/
|
|
137
136
|
clickToRevealLayer: 'Click to reveal layer in layer tree',
|
|
138
137
|
/**
|
|
@@ -141,7 +140,7 @@ const UIStrings = {
|
|
|
141
140
|
*/
|
|
142
141
|
aiSuggestionAccepted: '{PH1} Suggestion accepted.',
|
|
143
142
|
/**
|
|
144
|
-
* @description Title of the general at-rule section
|
|
143
|
+
* @description Title of the general at-rule section.
|
|
145
144
|
*/
|
|
146
145
|
atRuleSection: 'Other @rules',
|
|
147
146
|
} as const;
|
|
@@ -1562,7 +1561,8 @@ export class StylesSidebarPane extends Common.ObjectWrapper.eventMixin<EventType
|
|
|
1562
1561
|
private createRenderingShortcuts(): UI.Toolbar.ToolbarButton {
|
|
1563
1562
|
const prefersColorSchemeSetting = Common.Settings.Settings.instance().resolve(
|
|
1564
1563
|
SDK.SDKSettings.emulatedCSSMediaFeaturePrefersColorSchemeSettingDescriptor);
|
|
1565
|
-
const autoDarkModeSetting =
|
|
1564
|
+
const autoDarkModeSetting =
|
|
1565
|
+
Common.Settings.Settings.instance().resolve(SDK.SDKSettings.emulateAutoDarkModeSettingDescriptor);
|
|
1566
1566
|
const decorateStatus = (condition: boolean, title: string): string => `${condition ? '✓ ' : ''}${title}`;
|
|
1567
1567
|
|
|
1568
1568
|
const button = new UI.Toolbar.ToolbarToggle(
|
|
@@ -15,7 +15,7 @@ import accessibilityTreeNodeStyles from './accessibilityTreeNode.css.js';
|
|
|
15
15
|
|
|
16
16
|
const UIStrings = {
|
|
17
17
|
/**
|
|
18
|
-
* @description Ignored node element text content in
|
|
18
|
+
* @description Ignored node element text content in the accessibility tree view of the Elements panel.
|
|
19
19
|
*/
|
|
20
20
|
ignored: 'Ignored',
|
|
21
21
|
} as const;
|
|
@@ -15,7 +15,7 @@ const UIStrings = {
|
|
|
15
15
|
/**
|
|
16
16
|
* @description Text for button that redirects to CSS property documentation.
|
|
17
17
|
*/
|
|
18
|
-
learnMore: 'Learn
|
|
18
|
+
learnMore: 'Learn more',
|
|
19
19
|
} as const;
|
|
20
20
|
const str_ = i18n.i18n.registerUIStrings('panels/elements/components/CSSHintDetailsView.ts', UIStrings);
|
|
21
21
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
@@ -11,18 +11,18 @@ import cssVariableValueViewStyles from './cssVariableValueView.css.js';
|
|
|
11
11
|
|
|
12
12
|
const UIStrings = {
|
|
13
13
|
/**
|
|
14
|
-
* @description Text for a link from custom property to its defining registration
|
|
14
|
+
* @description Text for a link from a custom property to its defining registration.
|
|
15
15
|
*/
|
|
16
16
|
registeredPropertyLinkTitle: 'View registered property',
|
|
17
17
|
/**
|
|
18
18
|
* @description Error message for a property value that failed to parse because it had an incorrect type. The message
|
|
19
19
|
* is shown in a popover when hovering the property value. The `type` placeholder will be rendered as an HTML element
|
|
20
|
-
* to apply some styling (color and monospace font)
|
|
20
|
+
* to apply some styling (color and monospace font).
|
|
21
21
|
* @example {<color>} type
|
|
22
22
|
*/
|
|
23
23
|
invalidPropertyValue: 'Invalid property value, expected type {type}',
|
|
24
24
|
/**
|
|
25
|
-
* @description Text displayed in a tooltip shown when hovering over a var() CSS function in the Styles
|
|
25
|
+
* @description Text displayed in a tooltip shown when hovering over a var() CSS function in the Styles tab when the custom property in this function does not exist. The parameter is the name of the property.
|
|
26
26
|
* @example {--my-custom-property-name} PH1
|
|
27
27
|
*/
|
|
28
28
|
sIsNotDefined: '{PH1} is not defined',
|
|
@@ -7,8 +7,8 @@ import type * as SDK from '../../../core/sdk/sdk.js';
|
|
|
7
7
|
|
|
8
8
|
const UIStrings = {
|
|
9
9
|
/**
|
|
10
|
-
* @description Text in
|
|
11
|
-
* is a text node, meaning it contains text only and no other HTML elements.
|
|
10
|
+
* @description Text in elements breadcrumbs of the Elements panel. Indicates that an HTML element
|
|
11
|
+
* is a text node, meaning it contains text only and no other HTML elements.
|
|
12
12
|
*/
|
|
13
13
|
text: '(text)',
|
|
14
14
|
} as const;
|
|
@@ -13,7 +13,7 @@ import elementsTreeExpandButtonStyles from './elementsTreeExpandButton.css.js';
|
|
|
13
13
|
|
|
14
14
|
const UIStrings = {
|
|
15
15
|
/**
|
|
16
|
-
* @description
|
|
16
|
+
* @description ARIA label for a button expanding a collapsed subtree.
|
|
17
17
|
*/
|
|
18
18
|
expand: 'Expand',
|
|
19
19
|
} as const;
|