devtools-protocol 0.0.973690 → 0.0.974265
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.
@@ -2877,6 +2877,16 @@
|
|
2877
2877
|
"items": {
|
2878
2878
|
"$ref": "CSSSupports"
|
2879
2879
|
}
|
2880
|
+
},
|
2881
|
+
{
|
2882
|
+
"name": "layers",
|
2883
|
+
"description": "Cascade layer array. Contains the layer hierarchy that this rule belongs to starting\nwith the innermost layer and going outwards.",
|
2884
|
+
"experimental": true,
|
2885
|
+
"optional": true,
|
2886
|
+
"type": "array",
|
2887
|
+
"items": {
|
2888
|
+
"$ref": "CSSLayer"
|
2889
|
+
}
|
2880
2890
|
}
|
2881
2891
|
]
|
2882
2892
|
},
|
@@ -3226,6 +3236,58 @@
|
|
3226
3236
|
}
|
3227
3237
|
]
|
3228
3238
|
},
|
3239
|
+
{
|
3240
|
+
"id": "CSSLayer",
|
3241
|
+
"description": "CSS Layer at-rule descriptor.",
|
3242
|
+
"experimental": true,
|
3243
|
+
"type": "object",
|
3244
|
+
"properties": [
|
3245
|
+
{
|
3246
|
+
"name": "text",
|
3247
|
+
"description": "Layer name.",
|
3248
|
+
"type": "string"
|
3249
|
+
},
|
3250
|
+
{
|
3251
|
+
"name": "range",
|
3252
|
+
"description": "The associated rule header range in the enclosing stylesheet (if\navailable).",
|
3253
|
+
"optional": true,
|
3254
|
+
"$ref": "SourceRange"
|
3255
|
+
},
|
3256
|
+
{
|
3257
|
+
"name": "styleSheetId",
|
3258
|
+
"description": "Identifier of the stylesheet containing this object (if exists).",
|
3259
|
+
"optional": true,
|
3260
|
+
"$ref": "StyleSheetId"
|
3261
|
+
}
|
3262
|
+
]
|
3263
|
+
},
|
3264
|
+
{
|
3265
|
+
"id": "CSSLayerData",
|
3266
|
+
"description": "CSS Layer data.",
|
3267
|
+
"experimental": true,
|
3268
|
+
"type": "object",
|
3269
|
+
"properties": [
|
3270
|
+
{
|
3271
|
+
"name": "name",
|
3272
|
+
"description": "Layer name.",
|
3273
|
+
"type": "string"
|
3274
|
+
},
|
3275
|
+
{
|
3276
|
+
"name": "subLayers",
|
3277
|
+
"description": "Direct sub-layers",
|
3278
|
+
"optional": true,
|
3279
|
+
"type": "array",
|
3280
|
+
"items": {
|
3281
|
+
"$ref": "CSSLayerData"
|
3282
|
+
}
|
3283
|
+
},
|
3284
|
+
{
|
3285
|
+
"name": "order",
|
3286
|
+
"description": "Layer order. The order determines the order of the layer in the cascade order.\nA higher number has higher priority in the cascade order.",
|
3287
|
+
"type": "number"
|
3288
|
+
}
|
3289
|
+
]
|
3290
|
+
},
|
3229
3291
|
{
|
3230
3292
|
"id": "PlatformFontUsage",
|
3231
3293
|
"description": "Information about amount of glyphs that were rendered with given font.",
|
@@ -3688,6 +3750,23 @@
|
|
3688
3750
|
}
|
3689
3751
|
]
|
3690
3752
|
},
|
3753
|
+
{
|
3754
|
+
"name": "getLayersForNode",
|
3755
|
+
"description": "Returns all layers parsed by the rendering engine for the tree scope of a node.\nGiven a DOM element identified by nodeId, getLayersForNode returns the root\nlayer for the nearest ancestor document or shadow root. The layer root contains\nthe full layer tree for the tree scope and their ordering.",
|
3756
|
+
"experimental": true,
|
3757
|
+
"parameters": [
|
3758
|
+
{
|
3759
|
+
"name": "nodeId",
|
3760
|
+
"$ref": "DOM.NodeId"
|
3761
|
+
}
|
3762
|
+
],
|
3763
|
+
"returns": [
|
3764
|
+
{
|
3765
|
+
"name": "rootLayer",
|
3766
|
+
"$ref": "CSSLayerData"
|
3767
|
+
}
|
3768
|
+
]
|
3769
|
+
},
|
3691
3770
|
{
|
3692
3771
|
"name": "trackComputedStyleUpdates",
|
3693
3772
|
"description": "Starts tracking the given computed styles for updates. The specified array of properties\nreplaces the one previously specified. Pass empty array to disable tracking.\nUse takeComputedStyleUpdates to retrieve the list of nodes that had properties modified.\nThe changes to computed style properties are only tracked for nodes pushed to the front-end\nby the DOM agent. If no changes to the tracked properties occur after the node has been pushed\nto the front-end, no updates will be issued for the node.",
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -1388,6 +1388,9 @@ experimental domain CSS
|
|
1388
1388
|
# @supports CSS at-rule array.
|
1389
1389
|
# The array enumerates @supports at-rules starting with the innermost one, going outwards.
|
1390
1390
|
experimental optional array of CSSSupports supports
|
1391
|
+
# Cascade layer array. Contains the layer hierarchy that this rule belongs to starting
|
1392
|
+
# with the innermost layer and going outwards.
|
1393
|
+
experimental optional array of CSSLayer layers
|
1391
1394
|
|
1392
1395
|
# CSS coverage information.
|
1393
1396
|
type RuleUsage extends object
|
@@ -1535,6 +1538,28 @@ experimental domain CSS
|
|
1535
1538
|
# Identifier of the stylesheet containing this object (if exists).
|
1536
1539
|
optional StyleSheetId styleSheetId
|
1537
1540
|
|
1541
|
+
# CSS Layer at-rule descriptor.
|
1542
|
+
experimental type CSSLayer extends object
|
1543
|
+
properties
|
1544
|
+
# Layer name.
|
1545
|
+
string text
|
1546
|
+
# The associated rule header range in the enclosing stylesheet (if
|
1547
|
+
# available).
|
1548
|
+
optional SourceRange range
|
1549
|
+
# Identifier of the stylesheet containing this object (if exists).
|
1550
|
+
optional StyleSheetId styleSheetId
|
1551
|
+
|
1552
|
+
# CSS Layer data.
|
1553
|
+
experimental type CSSLayerData extends object
|
1554
|
+
properties
|
1555
|
+
# Layer name.
|
1556
|
+
string name
|
1557
|
+
# Direct sub-layers
|
1558
|
+
optional array of CSSLayerData subLayers
|
1559
|
+
# Layer order. The order determines the order of the layer in the cascade order.
|
1560
|
+
# A higher number has higher priority in the cascade order.
|
1561
|
+
number order
|
1562
|
+
|
1538
1563
|
# Information about amount of glyphs that were rendered with given font.
|
1539
1564
|
type PlatformFontUsage extends object
|
1540
1565
|
properties
|
@@ -1736,6 +1761,16 @@ experimental domain CSS
|
|
1736
1761
|
# The stylesheet text.
|
1737
1762
|
string text
|
1738
1763
|
|
1764
|
+
# Returns all layers parsed by the rendering engine for the tree scope of a node.
|
1765
|
+
# Given a DOM element identified by nodeId, getLayersForNode returns the root
|
1766
|
+
# layer for the nearest ancestor document or shadow root. The layer root contains
|
1767
|
+
# the full layer tree for the tree scope and their ordering.
|
1768
|
+
experimental command getLayersForNode
|
1769
|
+
parameters
|
1770
|
+
DOM.NodeId nodeId
|
1771
|
+
returns
|
1772
|
+
CSSLayerData rootLayer
|
1773
|
+
|
1739
1774
|
# Starts tracking the given computed styles for updates. The specified array of properties
|
1740
1775
|
# replaces the one previously specified. Pass empty array to disable tracking.
|
1741
1776
|
# Use takeComputedStyleUpdates to retrieve the list of nodes that had properties modified.
|
@@ -1634,6 +1634,16 @@ export namespace ProtocolMapping {
|
|
1634
1634
|
paramsType: [Protocol.CSS.GetStyleSheetTextRequest];
|
1635
1635
|
returnType: Protocol.CSS.GetStyleSheetTextResponse;
|
1636
1636
|
};
|
1637
|
+
/**
|
1638
|
+
* Returns all layers parsed by the rendering engine for the tree scope of a node.
|
1639
|
+
* Given a DOM element identified by nodeId, getLayersForNode returns the root
|
1640
|
+
* layer for the nearest ancestor document or shadow root. The layer root contains
|
1641
|
+
* the full layer tree for the tree scope and their ordering.
|
1642
|
+
*/
|
1643
|
+
'CSS.getLayersForNode': {
|
1644
|
+
paramsType: [Protocol.CSS.GetLayersForNodeRequest];
|
1645
|
+
returnType: Protocol.CSS.GetLayersForNodeResponse;
|
1646
|
+
};
|
1637
1647
|
/**
|
1638
1648
|
* Starts tracking the given computed styles for updates. The specified array of properties
|
1639
1649
|
* replaces the one previously specified. Pass empty array to disable tracking.
|
@@ -963,6 +963,14 @@ export namespace ProtocolProxyApi {
|
|
963
963
|
*/
|
964
964
|
getStyleSheetText(params: Protocol.CSS.GetStyleSheetTextRequest): Promise<Protocol.CSS.GetStyleSheetTextResponse>;
|
965
965
|
|
966
|
+
/**
|
967
|
+
* Returns all layers parsed by the rendering engine for the tree scope of a node.
|
968
|
+
* Given a DOM element identified by nodeId, getLayersForNode returns the root
|
969
|
+
* layer for the nearest ancestor document or shadow root. The layer root contains
|
970
|
+
* the full layer tree for the tree scope and their ordering.
|
971
|
+
*/
|
972
|
+
getLayersForNode(params: Protocol.CSS.GetLayersForNodeRequest): Promise<Protocol.CSS.GetLayersForNodeResponse>;
|
973
|
+
|
966
974
|
/**
|
967
975
|
* Starts tracking the given computed styles for updates. The specified array of properties
|
968
976
|
* replaces the one previously specified. Pass empty array to disable tracking.
|
package/types/protocol.d.ts
CHANGED
@@ -4115,6 +4115,11 @@ export namespace Protocol {
|
|
4115
4115
|
* The array enumerates @supports at-rules starting with the innermost one, going outwards.
|
4116
4116
|
*/
|
4117
4117
|
supports?: CSSSupports[];
|
4118
|
+
/**
|
4119
|
+
* Cascade layer array. Contains the layer hierarchy that this rule belongs to starting
|
4120
|
+
* with the innermost layer and going outwards.
|
4121
|
+
*/
|
4122
|
+
layers?: CSSLayer[];
|
4118
4123
|
}
|
4119
4124
|
|
4120
4125
|
/**
|
@@ -4376,6 +4381,44 @@ export namespace Protocol {
|
|
4376
4381
|
styleSheetId?: StyleSheetId;
|
4377
4382
|
}
|
4378
4383
|
|
4384
|
+
/**
|
4385
|
+
* CSS Layer at-rule descriptor.
|
4386
|
+
*/
|
4387
|
+
export interface CSSLayer {
|
4388
|
+
/**
|
4389
|
+
* Layer name.
|
4390
|
+
*/
|
4391
|
+
text: string;
|
4392
|
+
/**
|
4393
|
+
* The associated rule header range in the enclosing stylesheet (if
|
4394
|
+
* available).
|
4395
|
+
*/
|
4396
|
+
range?: SourceRange;
|
4397
|
+
/**
|
4398
|
+
* Identifier of the stylesheet containing this object (if exists).
|
4399
|
+
*/
|
4400
|
+
styleSheetId?: StyleSheetId;
|
4401
|
+
}
|
4402
|
+
|
4403
|
+
/**
|
4404
|
+
* CSS Layer data.
|
4405
|
+
*/
|
4406
|
+
export interface CSSLayerData {
|
4407
|
+
/**
|
4408
|
+
* Layer name.
|
4409
|
+
*/
|
4410
|
+
name: string;
|
4411
|
+
/**
|
4412
|
+
* Direct sub-layers
|
4413
|
+
*/
|
4414
|
+
subLayers?: CSSLayerData[];
|
4415
|
+
/**
|
4416
|
+
* Layer order. The order determines the order of the layer in the cascade order.
|
4417
|
+
* A higher number has higher priority in the cascade order.
|
4418
|
+
*/
|
4419
|
+
order: number;
|
4420
|
+
}
|
4421
|
+
|
4379
4422
|
/**
|
4380
4423
|
* Information about amount of glyphs that were rendered with given font.
|
4381
4424
|
*/
|
@@ -4686,6 +4729,14 @@ export namespace Protocol {
|
|
4686
4729
|
text: string;
|
4687
4730
|
}
|
4688
4731
|
|
4732
|
+
export interface GetLayersForNodeRequest {
|
4733
|
+
nodeId: DOM.NodeId;
|
4734
|
+
}
|
4735
|
+
|
4736
|
+
export interface GetLayersForNodeResponse {
|
4737
|
+
rootLayer: CSSLayerData;
|
4738
|
+
}
|
4739
|
+
|
4689
4740
|
export interface TrackComputedStyleUpdatesRequest {
|
4690
4741
|
propertiesToTrack: CSSComputedStyleProperty[];
|
4691
4742
|
}
|