devtools-protocol 0.0.1392070 → 0.0.1392711
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.
@@ -4697,6 +4697,54 @@
|
|
4697
4697
|
}
|
4698
4698
|
]
|
4699
4699
|
},
|
4700
|
+
{
|
4701
|
+
"name": "resolveValues",
|
4702
|
+
"description": "Resolve the specified values in the context of the provided element.\nFor example, a value of '1em' is evaluated according to the computed\n'font-size' of the element and a value 'calc(1px + 2px)' will be\nresolved to '3px'.",
|
4703
|
+
"parameters": [
|
4704
|
+
{
|
4705
|
+
"name": "values",
|
4706
|
+
"description": "Substitution functions (var()/env()/attr()) and cascade-dependent\nkeywords (revert/revert-layer) do not work.",
|
4707
|
+
"type": "array",
|
4708
|
+
"items": {
|
4709
|
+
"type": "string"
|
4710
|
+
}
|
4711
|
+
},
|
4712
|
+
{
|
4713
|
+
"name": "nodeId",
|
4714
|
+
"description": "Id of the node in whose context the expression is evaluated",
|
4715
|
+
"$ref": "DOM.NodeId"
|
4716
|
+
},
|
4717
|
+
{
|
4718
|
+
"name": "propertyName",
|
4719
|
+
"description": "Only longhands and custom property names are accepted.",
|
4720
|
+
"optional": true,
|
4721
|
+
"type": "string"
|
4722
|
+
},
|
4723
|
+
{
|
4724
|
+
"name": "pseudoType",
|
4725
|
+
"description": "Pseudo element type, only works for pseudo elements that generate\nelements in the tree, such as ::before and ::after.",
|
4726
|
+
"experimental": true,
|
4727
|
+
"optional": true,
|
4728
|
+
"$ref": "DOM.PseudoType"
|
4729
|
+
},
|
4730
|
+
{
|
4731
|
+
"name": "pseudoIdentifier",
|
4732
|
+
"description": "Pseudo element custom ident.",
|
4733
|
+
"experimental": true,
|
4734
|
+
"optional": true,
|
4735
|
+
"type": "string"
|
4736
|
+
}
|
4737
|
+
],
|
4738
|
+
"returns": [
|
4739
|
+
{
|
4740
|
+
"name": "results",
|
4741
|
+
"type": "array",
|
4742
|
+
"items": {
|
4743
|
+
"type": "string"
|
4744
|
+
}
|
4745
|
+
}
|
4746
|
+
]
|
4747
|
+
},
|
4700
4748
|
{
|
4701
4749
|
"name": "getInlineStylesForNode",
|
4702
4750
|
"description": "Returns the styles defined inline (explicitly in the \"style\" attribute and implicitly, using DOM\nattributes) for a DOM node identified by `nodeId`.",
|
@@ -15772,7 +15820,7 @@
|
|
15772
15820
|
},
|
15773
15821
|
{
|
15774
15822
|
"name": "headers",
|
15775
|
-
"description": "Raw response headers as they were received over the wire
|
15823
|
+
"description": "Raw response headers as they were received over the wire.\nDuplicate headers in the response are represented as a single key with their values\nconcatentated using `\\n` as the separator.\nSee also `headersText` that contains verbatim text for HTTP/1.*.",
|
15776
15824
|
"$ref": "Headers"
|
15777
15825
|
},
|
15778
15826
|
{
|
@@ -15827,7 +15875,7 @@
|
|
15827
15875
|
},
|
15828
15876
|
{
|
15829
15877
|
"name": "headers",
|
15830
|
-
"description": "Raw response headers as they were received over the wire
|
15878
|
+
"description": "Raw response headers as they were received over the wire.\nDuplicate headers in the response are represented as a single key with their values\nconcatentated using `\\n` as the separator.\nSee also `headersText` that contains verbatim text for HTTP/1.*.",
|
15831
15879
|
"$ref": "Headers"
|
15832
15880
|
}
|
15833
15881
|
]
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -2264,6 +2264,27 @@ experimental domain CSS
|
|
2264
2264
|
# Computed style for the specified DOM node.
|
2265
2265
|
array of CSSComputedStyleProperty computedStyle
|
2266
2266
|
|
2267
|
+
# Resolve the specified values in the context of the provided element.
|
2268
|
+
# For example, a value of '1em' is evaluated according to the computed
|
2269
|
+
# 'font-size' of the element and a value 'calc(1px + 2px)' will be
|
2270
|
+
# resolved to '3px'.
|
2271
|
+
command resolveValues
|
2272
|
+
parameters
|
2273
|
+
# Substitution functions (var()/env()/attr()) and cascade-dependent
|
2274
|
+
# keywords (revert/revert-layer) do not work.
|
2275
|
+
array of string values
|
2276
|
+
# Id of the node in whose context the expression is evaluated
|
2277
|
+
DOM.NodeId nodeId
|
2278
|
+
# Only longhands and custom property names are accepted.
|
2279
|
+
optional string propertyName
|
2280
|
+
# Pseudo element type, only works for pseudo elements that generate
|
2281
|
+
# elements in the tree, such as ::before and ::after.
|
2282
|
+
experimental optional DOM.PseudoType pseudoType
|
2283
|
+
# Pseudo element custom ident.
|
2284
|
+
experimental optional string pseudoIdentifier
|
2285
|
+
returns
|
2286
|
+
array of string results
|
2287
|
+
|
2267
2288
|
# Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM
|
2268
2289
|
# attributes) for a DOM node identified by `nodeId`.
|
2269
2290
|
command getInlineStylesForNode
|
@@ -7293,6 +7314,9 @@ domain Network
|
|
7293
7314
|
# are represented by the invalid cookie line string instead of a proper cookie.
|
7294
7315
|
array of BlockedSetCookieWithReason blockedCookies
|
7295
7316
|
# Raw response headers as they were received over the wire.
|
7317
|
+
# Duplicate headers in the response are represented as a single key with their values
|
7318
|
+
# concatentated using `\n` as the separator.
|
7319
|
+
# See also `headersText` that contains verbatim text for HTTP/1.*.
|
7296
7320
|
Headers headers
|
7297
7321
|
# The IP address space of the resource. The address space can only be determined once the transport
|
7298
7322
|
# established the connection, so we can't send it in `requestWillBeSentExtraInfo`.
|
@@ -7321,6 +7345,9 @@ domain Network
|
|
7321
7345
|
# Request identifier. Used to match this information to another responseReceived event.
|
7322
7346
|
RequestId requestId
|
7323
7347
|
# Raw response headers as they were received over the wire.
|
7348
|
+
# Duplicate headers in the response are represented as a single key with their values
|
7349
|
+
# concatentated using `\n` as the separator.
|
7350
|
+
# See also `headersText` that contains verbatim text for HTTP/1.*.
|
7324
7351
|
Headers headers
|
7325
7352
|
|
7326
7353
|
# Fired exactly once for each Trust Token operation. Depending on
|
@@ -1818,6 +1818,16 @@ export namespace ProtocolMapping {
|
|
1818
1818
|
paramsType: [Protocol.CSS.GetComputedStyleForNodeRequest];
|
1819
1819
|
returnType: Protocol.CSS.GetComputedStyleForNodeResponse;
|
1820
1820
|
};
|
1821
|
+
/**
|
1822
|
+
* Resolve the specified values in the context of the provided element.
|
1823
|
+
* For example, a value of '1em' is evaluated according to the computed
|
1824
|
+
* 'font-size' of the element and a value 'calc(1px + 2px)' will be
|
1825
|
+
* resolved to '3px'.
|
1826
|
+
*/
|
1827
|
+
'CSS.resolveValues': {
|
1828
|
+
paramsType: [Protocol.CSS.ResolveValuesRequest];
|
1829
|
+
returnType: Protocol.CSS.ResolveValuesResponse;
|
1830
|
+
};
|
1821
1831
|
/**
|
1822
1832
|
* Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM
|
1823
1833
|
* attributes) for a DOM node identified by `nodeId`.
|
@@ -1061,6 +1061,14 @@ export namespace ProtocolProxyApi {
|
|
1061
1061
|
*/
|
1062
1062
|
getComputedStyleForNode(params: Protocol.CSS.GetComputedStyleForNodeRequest): Promise<Protocol.CSS.GetComputedStyleForNodeResponse>;
|
1063
1063
|
|
1064
|
+
/**
|
1065
|
+
* Resolve the specified values in the context of the provided element.
|
1066
|
+
* For example, a value of '1em' is evaluated according to the computed
|
1067
|
+
* 'font-size' of the element and a value 'calc(1px + 2px)' will be
|
1068
|
+
* resolved to '3px'.
|
1069
|
+
*/
|
1070
|
+
resolveValues(params: Protocol.CSS.ResolveValuesRequest): Promise<Protocol.CSS.ResolveValuesResponse>;
|
1071
|
+
|
1064
1072
|
/**
|
1065
1073
|
* Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM
|
1066
1074
|
* attributes) for a DOM node identified by `nodeId`.
|
@@ -1129,6 +1129,14 @@ export namespace ProtocolTestsProxyApi {
|
|
1129
1129
|
*/
|
1130
1130
|
getComputedStyleForNode(params: Protocol.CSS.GetComputedStyleForNodeRequest): Promise<{id: number, result: Protocol.CSS.GetComputedStyleForNodeResponse, sessionId: string}>;
|
1131
1131
|
|
1132
|
+
/**
|
1133
|
+
* Resolve the specified values in the context of the provided element.
|
1134
|
+
* For example, a value of '1em' is evaluated according to the computed
|
1135
|
+
* 'font-size' of the element and a value 'calc(1px + 2px)' will be
|
1136
|
+
* resolved to '3px'.
|
1137
|
+
*/
|
1138
|
+
resolveValues(params: Protocol.CSS.ResolveValuesRequest): Promise<{id: number, result: Protocol.CSS.ResolveValuesResponse, sessionId: string}>;
|
1139
|
+
|
1132
1140
|
/**
|
1133
1141
|
* Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM
|
1134
1142
|
* attributes) for a DOM node identified by `nodeId`.
|
package/types/protocol.d.ts
CHANGED
@@ -5476,6 +5476,35 @@ export namespace Protocol {
|
|
5476
5476
|
computedStyle: CSSComputedStyleProperty[];
|
5477
5477
|
}
|
5478
5478
|
|
5479
|
+
export interface ResolveValuesRequest {
|
5480
|
+
/**
|
5481
|
+
* Substitution functions (var()/env()/attr()) and cascade-dependent
|
5482
|
+
* keywords (revert/revert-layer) do not work.
|
5483
|
+
*/
|
5484
|
+
values: string[];
|
5485
|
+
/**
|
5486
|
+
* Id of the node in whose context the expression is evaluated
|
5487
|
+
*/
|
5488
|
+
nodeId: DOM.NodeId;
|
5489
|
+
/**
|
5490
|
+
* Only longhands and custom property names are accepted.
|
5491
|
+
*/
|
5492
|
+
propertyName?: string;
|
5493
|
+
/**
|
5494
|
+
* Pseudo element type, only works for pseudo elements that generate
|
5495
|
+
* elements in the tree, such as ::before and ::after.
|
5496
|
+
*/
|
5497
|
+
pseudoType?: DOM.PseudoType;
|
5498
|
+
/**
|
5499
|
+
* Pseudo element custom ident.
|
5500
|
+
*/
|
5501
|
+
pseudoIdentifier?: string;
|
5502
|
+
}
|
5503
|
+
|
5504
|
+
export interface ResolveValuesResponse {
|
5505
|
+
results: string[];
|
5506
|
+
}
|
5507
|
+
|
5479
5508
|
export interface GetInlineStylesForNodeRequest {
|
5480
5509
|
nodeId: DOM.NodeId;
|
5481
5510
|
}
|
@@ -12511,6 +12540,9 @@ export namespace Protocol {
|
|
12511
12540
|
blockedCookies: BlockedSetCookieWithReason[];
|
12512
12541
|
/**
|
12513
12542
|
* Raw response headers as they were received over the wire.
|
12543
|
+
* Duplicate headers in the response are represented as a single key with their values
|
12544
|
+
* concatentated using `\n` as the separator.
|
12545
|
+
* See also `headersText` that contains verbatim text for HTTP/1.*.
|
12514
12546
|
*/
|
12515
12547
|
headers: Headers;
|
12516
12548
|
/**
|
@@ -12557,6 +12589,9 @@ export namespace Protocol {
|
|
12557
12589
|
requestId: RequestId;
|
12558
12590
|
/**
|
12559
12591
|
* Raw response headers as they were received over the wire.
|
12592
|
+
* Duplicate headers in the response are represented as a single key with their values
|
12593
|
+
* concatentated using `\n` as the separator.
|
12594
|
+
* See also `headersText` that contains verbatim text for HTTP/1.*.
|
12560
12595
|
*/
|
12561
12596
|
headers: Headers;
|
12562
12597
|
}
|