diff --git a/changelog.md b/changelog.md index 811f4f3a26..6cef0a571e 100644 --- a/changelog.md +++ b/changelog.md @@ -1,7 +1,35 @@ +## Roll protocol to r1402790 — _2025-01-07T04:28:42.000Z_ +###### Diff: [`9d48b99...efa121f`](https://github.com/ChromeDevTools/devtools-protocol/compare/9d48b99...efa121f) + +```diff +@@ browser_protocol.pdl:2327 @@ experimental domain CSS + returns + array of string results + ++ experimental command getLonghandProperties ++ parameters ++ string shorthandName ++ string value ++ returns ++ array of CSSProperty longhandProperties ++ + # Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM + # attributes) for a DOM node identified by `nodeId`. + command getInlineStylesForNode +@@ -7429,6 +7436,7 @@ domain Network + InternalError + UnknownError + FulfilledLocally ++ SiteIssuerLimit + TrustTokenOperationType type + RequestId requestId + # Top level origin. The context in which the operation was attempted. +``` + ## Roll protocol to r1402036 — _2025-01-04T04:28:29.000Z_ -###### Diff: [`1f97d3a...a10871b`](https://github.com/ChromeDevTools/devtools-protocol/compare/1f97d3a...a10871b) +###### Diff: [`1f97d3a...9d48b99`](https://github.com/ChromeDevTools/devtools-protocol/compare/1f97d3a...9d48b99) ```diff @@ browser_protocol.pdl:7639 @@ domain Network diff --git a/json/browser_protocol.json b/json/browser_protocol.json index 4339a4e526..7d4131ede5 100644 --- a/json/browser_protocol.json +++ b/json/browser_protocol.json @@ -4837,6 +4837,29 @@ } ] }, + { + "name": "getLonghandProperties", + "experimental": true, + "parameters": [ + { + "name": "shorthandName", + "type": "string" + }, + { + "name": "value", + "type": "string" + } + ], + "returns": [ + { + "name": "longhandProperties", + "type": "array", + "items": { + "$ref": "CSSProperty" + } + } + ] + }, { "name": "getInlineStylesForNode", "description": "Returns the styles defined inline (explicitly in the \"style\" attribute and implicitly, using DOM\nattributes) for a DOM node identified by `nodeId`.", @@ -16052,7 +16075,8 @@ "BadResponse", "InternalError", "UnknownError", - "FulfilledLocally" + "FulfilledLocally", + "SiteIssuerLimit" ] }, { diff --git a/package.json b/package.json index 049a5cfb7e..3f2f961383 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "devtools-protocol", - "version": "0.0.1402036", + "version": "0.0.1402790", "description": "The Chrome DevTools Protocol JSON", "repository": "https://github.com/ChromeDevTools/devtools-protocol", "author": "The Chromium Authors", diff --git a/pdl/browser_protocol.pdl b/pdl/browser_protocol.pdl index 259fdcb9eb..d1f03de9eb 100644 --- a/pdl/browser_protocol.pdl +++ b/pdl/browser_protocol.pdl @@ -2327,6 +2327,13 @@ experimental domain CSS returns array of string results + experimental command getLonghandProperties + parameters + string shorthandName + string value + returns + array of CSSProperty longhandProperties + # Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM # attributes) for a DOM node identified by `nodeId`. command getInlineStylesForNode @@ -7429,6 +7436,7 @@ domain Network InternalError UnknownError FulfilledLocally + SiteIssuerLimit TrustTokenOperationType type RequestId requestId # Top level origin. The context in which the operation was attempted. diff --git a/types/protocol-mapping.d.ts b/types/protocol-mapping.d.ts index a0809219e3..7a1567681c 100644 --- a/types/protocol-mapping.d.ts +++ b/types/protocol-mapping.d.ts @@ -1835,6 +1835,10 @@ export namespace ProtocolMapping { paramsType: [Protocol.CSS.ResolveValuesRequest]; returnType: Protocol.CSS.ResolveValuesResponse; }; + 'CSS.getLonghandProperties': { + paramsType: [Protocol.CSS.GetLonghandPropertiesRequest]; + returnType: Protocol.CSS.GetLonghandPropertiesResponse; + }; /** * Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM * attributes) for a DOM node identified by `nodeId`. diff --git a/types/protocol-proxy-api.d.ts b/types/protocol-proxy-api.d.ts index 82e214de40..239fe9714a 100644 --- a/types/protocol-proxy-api.d.ts +++ b/types/protocol-proxy-api.d.ts @@ -1074,6 +1074,8 @@ export namespace ProtocolProxyApi { */ resolveValues(params: Protocol.CSS.ResolveValuesRequest): Promise; + getLonghandProperties(params: Protocol.CSS.GetLonghandPropertiesRequest): Promise; + /** * Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM * attributes) for a DOM node identified by `nodeId`. diff --git a/types/protocol-tests-proxy-api.d.ts b/types/protocol-tests-proxy-api.d.ts index 175f090276..e4cfb13723 100644 --- a/types/protocol-tests-proxy-api.d.ts +++ b/types/protocol-tests-proxy-api.d.ts @@ -1142,6 +1142,8 @@ export namespace ProtocolTestsProxyApi { */ resolveValues(params: Protocol.CSS.ResolveValuesRequest): Promise<{id: number, result: Protocol.CSS.ResolveValuesResponse, sessionId: string}>; + getLonghandProperties(params: Protocol.CSS.GetLonghandPropertiesRequest): Promise<{id: number, result: Protocol.CSS.GetLonghandPropertiesResponse, sessionId: string}>; + /** * Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM * attributes) for a DOM node identified by `nodeId`. diff --git a/types/protocol.d.ts b/types/protocol.d.ts index d8e0c863ae..a059531ce3 100644 --- a/types/protocol.d.ts +++ b/types/protocol.d.ts @@ -5564,6 +5564,15 @@ export namespace Protocol { results: string[]; } + export interface GetLonghandPropertiesRequest { + shorthandName: string; + value: string; + } + + export interface GetLonghandPropertiesResponse { + longhandProperties: CSSProperty[]; + } + export interface GetInlineStylesForNodeRequest { nodeId: DOM.NodeId; } @@ -12703,6 +12712,7 @@ export namespace Protocol { InternalError = 'InternalError', UnknownError = 'UnknownError', FulfilledLocally = 'FulfilledLocally', + SiteIssuerLimit = 'SiteIssuerLimit', } /** @@ -12718,7 +12728,7 @@ export namespace Protocol { * of the operation already exists und thus, the operation was abort * preemptively (e.g. a cache hit). (TrustTokenOperationDoneEventStatus enum) */ - status: ('Ok' | 'InvalidArgument' | 'MissingIssuerKeys' | 'FailedPrecondition' | 'ResourceExhausted' | 'AlreadyExists' | 'ResourceLimited' | 'Unauthorized' | 'BadResponse' | 'InternalError' | 'UnknownError' | 'FulfilledLocally'); + status: ('Ok' | 'InvalidArgument' | 'MissingIssuerKeys' | 'FailedPrecondition' | 'ResourceExhausted' | 'AlreadyExists' | 'ResourceLimited' | 'Unauthorized' | 'BadResponse' | 'InternalError' | 'UnknownError' | 'FulfilledLocally' | 'SiteIssuerLimit'); type: TrustTokenOperationType; requestId: RequestId; /**