chrome-devtools-frontend 1.0.1650035 → 1.0.1650100
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/front_end/core/sdk/CSSMetadata.ts +19 -1
- package/front_end/generated/SupportedCSSProperties.js +342 -114
- package/front_end/models/ai_assistance/AiConversation.ts +2 -1
- package/front_end/models/ai_assistance/agents/AccessibilityAgent.ts +10 -57
- package/front_end/models/ai_assistance/agents/ContextSelectionAgent.ts +1 -1
- package/front_end/models/ai_assistance/ai_assistance.ts +2 -0
- package/front_end/models/ai_assistance/contexts/AccessibilityContext.snapshot.txt +26 -0
- package/front_end/models/ai_assistance/contexts/AccessibilityContext.ts +63 -0
- package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +3 -2
- package/front_end/models/stack_trace/DetailedErrorStackParser.ts +18 -0
- package/front_end/models/stack_trace/stack_trace.ts +0 -4
- package/front_end/panels/accessibility/ARIAAttributesView.ts +1 -0
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +5 -5
- package/front_end/panels/ai_assistance/components/ChatInput.ts +1 -1
- package/front_end/ui/legacy/components/utils/Linkifier.ts +12 -6
- package/package.json +1 -1
- package/front_end/models/stack_trace/ErrorStackParser.ts +0 -174
|
@@ -60,6 +60,10 @@ export class CSSMetadata {
|
|
|
60
60
|
continue;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
+
const runtimeFlagStatus = property.runtime_flag_status;
|
|
64
|
+
if (Boolean(runtimeFlagStatus) && runtimeFlagStatus !== 'stable') {
|
|
65
|
+
continue;
|
|
66
|
+
}
|
|
63
67
|
if (!CSS.supports(propertyName, 'initial')) {
|
|
64
68
|
continue;
|
|
65
69
|
}
|
|
@@ -127,7 +131,15 @@ export class CSSMetadata {
|
|
|
127
131
|
|
|
128
132
|
for (const name of this.#valuesSet) {
|
|
129
133
|
const values = this.specificPropertyValues(name)
|
|
130
|
-
.filter(value =>
|
|
134
|
+
.filter(value => {
|
|
135
|
+
// Filter out values which are just the function name (e.g. 'url', 'radial-gradient', etc.)
|
|
136
|
+
// The 'preset' is the full function (e.g. 'url(||)').
|
|
137
|
+
const preset = valuePresets.get(name)?.get(value);
|
|
138
|
+
if (preset && preset !== value) {
|
|
139
|
+
return false;
|
|
140
|
+
}
|
|
141
|
+
return CSS.supports(name, value);
|
|
142
|
+
})
|
|
131
143
|
.sort(CSSMetadata.sortPrefixesAndCSSWideKeywordsToEnd);
|
|
132
144
|
const presets = values.map(value => `${name}: ${value}`);
|
|
133
145
|
if (!this.isSVGProperty(name)) {
|
|
@@ -1424,6 +1436,10 @@ const extraPropertyValues = new Map<string, Set<string>>([
|
|
|
1424
1436
|
]),
|
|
1425
1437
|
],
|
|
1426
1438
|
['outline-style', new Set(['auto'])],
|
|
1439
|
+
['overflow-block', new Set(['auto', 'hidden', 'visible', 'overlay', 'scroll', 'clip'])],
|
|
1440
|
+
['overflow-inline', new Set(['auto', 'hidden', 'visible', 'overlay', 'scroll', 'clip'])],
|
|
1441
|
+
['overscroll-behavior-block', new Set(['auto', 'none', 'contain'])],
|
|
1442
|
+
['overscroll-behavior-inline', new Set(['auto', 'none', 'contain'])],
|
|
1427
1443
|
]);
|
|
1428
1444
|
|
|
1429
1445
|
// Weight of CSS properties based on their usage from https://www.chromestatus.com/metrics/css/popularity
|
|
@@ -1693,4 +1709,6 @@ export interface CSSPropertyDefinition {
|
|
|
1693
1709
|
is_descriptor?: boolean;
|
|
1694
1710
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1695
1711
|
is_property?: boolean;
|
|
1712
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1713
|
+
runtime_flag_status?: string;
|
|
1696
1714
|
}
|