devtools-protocol 0.0.1376096 → 0.0.1376744
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.
@@ -3670,6 +3670,16 @@
|
|
3670
3670
|
"items": {
|
3671
3671
|
"$ref": "CSSRuleType"
|
3672
3672
|
}
|
3673
|
+
},
|
3674
|
+
{
|
3675
|
+
"name": "startingStyles",
|
3676
|
+
"description": "@starting-style CSS at-rule array.\nThe array enumerates @starting-style at-rules starting with the innermost one, going outwards.",
|
3677
|
+
"experimental": true,
|
3678
|
+
"optional": true,
|
3679
|
+
"type": "array",
|
3680
|
+
"items": {
|
3681
|
+
"$ref": "CSSStartingStyle"
|
3682
|
+
}
|
3673
3683
|
}
|
3674
3684
|
]
|
3675
3685
|
},
|
@@ -3684,7 +3694,8 @@
|
|
3684
3694
|
"ContainerRule",
|
3685
3695
|
"LayerRule",
|
3686
3696
|
"ScopeRule",
|
3687
|
-
"StyleRule"
|
3697
|
+
"StyleRule",
|
3698
|
+
"StartingStyleRule"
|
3688
3699
|
]
|
3689
3700
|
},
|
3690
3701
|
{
|
@@ -4027,6 +4038,12 @@
|
|
4027
4038
|
"description": "Optional logical axes queried for the container.",
|
4028
4039
|
"optional": true,
|
4029
4040
|
"$ref": "DOM.LogicalAxes"
|
4041
|
+
},
|
4042
|
+
{
|
4043
|
+
"name": "queriesScrollState",
|
4044
|
+
"description": "true if the query contains scroll-state() queries.",
|
4045
|
+
"optional": true,
|
4046
|
+
"type": "boolean"
|
4030
4047
|
}
|
4031
4048
|
]
|
4032
4049
|
},
|
@@ -4110,6 +4127,26 @@
|
|
4110
4127
|
}
|
4111
4128
|
]
|
4112
4129
|
},
|
4130
|
+
{
|
4131
|
+
"id": "CSSStartingStyle",
|
4132
|
+
"description": "CSS Starting Style at-rule descriptor.",
|
4133
|
+
"experimental": true,
|
4134
|
+
"type": "object",
|
4135
|
+
"properties": [
|
4136
|
+
{
|
4137
|
+
"name": "range",
|
4138
|
+
"description": "The associated rule header range in the enclosing stylesheet (if\navailable).",
|
4139
|
+
"optional": true,
|
4140
|
+
"$ref": "SourceRange"
|
4141
|
+
},
|
4142
|
+
{
|
4143
|
+
"name": "styleSheetId",
|
4144
|
+
"description": "Identifier of the stylesheet containing this object (if exists).",
|
4145
|
+
"optional": true,
|
4146
|
+
"$ref": "StyleSheetId"
|
4147
|
+
}
|
4148
|
+
]
|
4149
|
+
},
|
4113
4150
|
{
|
4114
4151
|
"id": "CSSLayerData",
|
4115
4152
|
"description": "CSS Layer data.",
|
@@ -7166,7 +7203,7 @@
|
|
7166
7203
|
},
|
7167
7204
|
{
|
7168
7205
|
"name": "getContainerForNode",
|
7169
|
-
"description": "Returns the query container of the given node based on container query\nconditions: containerName, physical
|
7206
|
+
"description": "Returns the query container of the given node based on container query\nconditions: containerName, physical and logical axes, and whether it queries\nscroll-state. If no axes are provided and queriesScrollState is false, the\nstyle container is returned, which is the direct parent or the closest\nelement with a matching container-name.",
|
7170
7207
|
"experimental": true,
|
7171
7208
|
"parameters": [
|
7172
7209
|
{
|
@@ -7187,6 +7224,11 @@
|
|
7187
7224
|
"name": "logicalAxes",
|
7188
7225
|
"optional": true,
|
7189
7226
|
"$ref": "LogicalAxes"
|
7227
|
+
},
|
7228
|
+
{
|
7229
|
+
"name": "queriesScrollState",
|
7230
|
+
"optional": true,
|
7231
|
+
"type": "boolean"
|
7190
7232
|
}
|
7191
7233
|
],
|
7192
7234
|
"returns": [
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -1798,6 +1798,9 @@ experimental domain CSS
|
|
1798
1798
|
experimental optional array of CSSScope scopes
|
1799
1799
|
# The array keeps the types of ancestor CSSRules from the innermost going outwards.
|
1800
1800
|
experimental optional array of CSSRuleType ruleTypes
|
1801
|
+
# @starting-style CSS at-rule array.
|
1802
|
+
# The array enumerates @starting-style at-rules starting with the innermost one, going outwards.
|
1803
|
+
experimental optional array of CSSStartingStyle startingStyles
|
1801
1804
|
|
1802
1805
|
# Enum indicating the type of a CSS rule, used to represent the order of a style rule's ancestors.
|
1803
1806
|
# This list only contains rule types that are collected during the ancestor rule collection.
|
@@ -1809,6 +1812,7 @@ experimental domain CSS
|
|
1809
1812
|
LayerRule
|
1810
1813
|
ScopeRule
|
1811
1814
|
StyleRule
|
1815
|
+
StartingStyleRule
|
1812
1816
|
|
1813
1817
|
# CSS coverage information.
|
1814
1818
|
type RuleUsage extends object
|
@@ -1951,6 +1955,8 @@ experimental domain CSS
|
|
1951
1955
|
optional DOM.PhysicalAxes physicalAxes
|
1952
1956
|
# Optional logical axes queried for the container.
|
1953
1957
|
optional DOM.LogicalAxes logicalAxes
|
1958
|
+
# true if the query contains scroll-state() queries.
|
1959
|
+
optional boolean queriesScrollState
|
1954
1960
|
|
1955
1961
|
# CSS Supports at-rule descriptor.
|
1956
1962
|
experimental type CSSSupports extends object
|
@@ -1987,6 +1993,15 @@ experimental domain CSS
|
|
1987
1993
|
# Identifier of the stylesheet containing this object (if exists).
|
1988
1994
|
optional StyleSheetId styleSheetId
|
1989
1995
|
|
1996
|
+
# CSS Starting Style at-rule descriptor.
|
1997
|
+
experimental type CSSStartingStyle extends object
|
1998
|
+
properties
|
1999
|
+
# The associated rule header range in the enclosing stylesheet (if
|
2000
|
+
# available).
|
2001
|
+
optional SourceRange range
|
2002
|
+
# Identifier of the stylesheet containing this object (if exists).
|
2003
|
+
optional StyleSheetId styleSheetId
|
2004
|
+
|
1990
2005
|
# CSS Layer data.
|
1991
2006
|
experimental type CSSLayerData extends object
|
1992
2007
|
properties
|
@@ -3387,15 +3402,17 @@ domain DOM
|
|
3387
3402
|
optional NodeId nodeId
|
3388
3403
|
|
3389
3404
|
# Returns the query container of the given node based on container query
|
3390
|
-
# conditions: containerName, physical
|
3391
|
-
#
|
3392
|
-
#
|
3405
|
+
# conditions: containerName, physical and logical axes, and whether it queries
|
3406
|
+
# scroll-state. If no axes are provided and queriesScrollState is false, the
|
3407
|
+
# style container is returned, which is the direct parent or the closest
|
3408
|
+
# element with a matching container-name.
|
3393
3409
|
experimental command getContainerForNode
|
3394
3410
|
parameters
|
3395
3411
|
NodeId nodeId
|
3396
3412
|
optional string containerName
|
3397
3413
|
optional PhysicalAxes physicalAxes
|
3398
3414
|
optional LogicalAxes logicalAxes
|
3415
|
+
optional boolean queriesScrollState
|
3399
3416
|
returns
|
3400
3417
|
# The container node for the given node, or null if not found.
|
3401
3418
|
optional NodeId nodeId
|
@@ -2439,9 +2439,10 @@ export namespace ProtocolMapping {
|
|
2439
2439
|
};
|
2440
2440
|
/**
|
2441
2441
|
* Returns the query container of the given node based on container query
|
2442
|
-
* conditions: containerName, physical
|
2443
|
-
*
|
2444
|
-
*
|
2442
|
+
* conditions: containerName, physical and logical axes, and whether it queries
|
2443
|
+
* scroll-state. If no axes are provided and queriesScrollState is false, the
|
2444
|
+
* style container is returned, which is the direct parent or the closest
|
2445
|
+
* element with a matching container-name.
|
2445
2446
|
*/
|
2446
2447
|
'DOM.getContainerForNode': {
|
2447
2448
|
paramsType: [Protocol.DOM.GetContainerForNodeRequest];
|
@@ -1566,9 +1566,10 @@ export namespace ProtocolProxyApi {
|
|
1566
1566
|
|
1567
1567
|
/**
|
1568
1568
|
* Returns the query container of the given node based on container query
|
1569
|
-
* conditions: containerName, physical
|
1570
|
-
*
|
1571
|
-
*
|
1569
|
+
* conditions: containerName, physical and logical axes, and whether it queries
|
1570
|
+
* scroll-state. If no axes are provided and queriesScrollState is false, the
|
1571
|
+
* style container is returned, which is the direct parent or the closest
|
1572
|
+
* element with a matching container-name.
|
1572
1573
|
*/
|
1573
1574
|
getContainerForNode(params: Protocol.DOM.GetContainerForNodeRequest): Promise<Protocol.DOM.GetContainerForNodeResponse>;
|
1574
1575
|
|
@@ -1648,9 +1648,10 @@ export namespace ProtocolTestsProxyApi {
|
|
1648
1648
|
|
1649
1649
|
/**
|
1650
1650
|
* Returns the query container of the given node based on container query
|
1651
|
-
* conditions: containerName, physical
|
1652
|
-
*
|
1653
|
-
*
|
1651
|
+
* conditions: containerName, physical and logical axes, and whether it queries
|
1652
|
+
* scroll-state. If no axes are provided and queriesScrollState is false, the
|
1653
|
+
* style container is returned, which is the direct parent or the closest
|
1654
|
+
* element with a matching container-name.
|
1654
1655
|
*/
|
1655
1656
|
getContainerForNode(params: Protocol.DOM.GetContainerForNodeRequest): Promise<{id: number, result: Protocol.DOM.GetContainerForNodeResponse, sessionId: string}>;
|
1656
1657
|
|
package/types/protocol.d.ts
CHANGED
@@ -4740,13 +4740,18 @@ export namespace Protocol {
|
|
4740
4740
|
* The array keeps the types of ancestor CSSRules from the innermost going outwards.
|
4741
4741
|
*/
|
4742
4742
|
ruleTypes?: CSSRuleType[];
|
4743
|
+
/**
|
4744
|
+
* @starting-style CSS at-rule array.
|
4745
|
+
* The array enumerates @starting-style at-rules starting with the innermost one, going outwards.
|
4746
|
+
*/
|
4747
|
+
startingStyles?: CSSStartingStyle[];
|
4743
4748
|
}
|
4744
4749
|
|
4745
4750
|
/**
|
4746
4751
|
* Enum indicating the type of a CSS rule, used to represent the order of a style rule's ancestors.
|
4747
4752
|
* This list only contains rule types that are collected during the ancestor rule collection.
|
4748
4753
|
*/
|
4749
|
-
export type CSSRuleType = ('MediaRule' | 'SupportsRule' | 'ContainerRule' | 'LayerRule' | 'ScopeRule' | 'StyleRule');
|
4754
|
+
export type CSSRuleType = ('MediaRule' | 'SupportsRule' | 'ContainerRule' | 'LayerRule' | 'ScopeRule' | 'StyleRule' | 'StartingStyleRule');
|
4750
4755
|
|
4751
4756
|
/**
|
4752
4757
|
* CSS coverage information.
|
@@ -4999,6 +5004,10 @@ export namespace Protocol {
|
|
4999
5004
|
* Optional logical axes queried for the container.
|
5000
5005
|
*/
|
5001
5006
|
logicalAxes?: DOM.LogicalAxes;
|
5007
|
+
/**
|
5008
|
+
* true if the query contains scroll-state() queries.
|
5009
|
+
*/
|
5010
|
+
queriesScrollState?: boolean;
|
5002
5011
|
}
|
5003
5012
|
|
5004
5013
|
/**
|
@@ -5062,6 +5071,21 @@ export namespace Protocol {
|
|
5062
5071
|
styleSheetId?: StyleSheetId;
|
5063
5072
|
}
|
5064
5073
|
|
5074
|
+
/**
|
5075
|
+
* CSS Starting Style at-rule descriptor.
|
5076
|
+
*/
|
5077
|
+
export interface CSSStartingStyle {
|
5078
|
+
/**
|
5079
|
+
* The associated rule header range in the enclosing stylesheet (if
|
5080
|
+
* available).
|
5081
|
+
*/
|
5082
|
+
range?: SourceRange;
|
5083
|
+
/**
|
5084
|
+
* Identifier of the stylesheet containing this object (if exists).
|
5085
|
+
*/
|
5086
|
+
styleSheetId?: StyleSheetId;
|
5087
|
+
}
|
5088
|
+
|
5065
5089
|
/**
|
5066
5090
|
* CSS Layer data.
|
5067
5091
|
*/
|
@@ -7011,6 +7035,7 @@ export namespace Protocol {
|
|
7011
7035
|
containerName?: string;
|
7012
7036
|
physicalAxes?: PhysicalAxes;
|
7013
7037
|
logicalAxes?: LogicalAxes;
|
7038
|
+
queriesScrollState?: boolean;
|
7014
7039
|
}
|
7015
7040
|
|
7016
7041
|
export interface GetContainerForNodeResponse {
|