devtools-protocol 0.0.1393284 → 0.0.1396320
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.
@@ -3393,6 +3393,24 @@
|
|
3393
3393
|
}
|
3394
3394
|
]
|
3395
3395
|
},
|
3396
|
+
{
|
3397
|
+
"id": "CSSAnimationStyle",
|
3398
|
+
"description": "CSS style coming from animations with the name of the animation.",
|
3399
|
+
"type": "object",
|
3400
|
+
"properties": [
|
3401
|
+
{
|
3402
|
+
"name": "name",
|
3403
|
+
"description": "The name of the animation.",
|
3404
|
+
"optional": true,
|
3405
|
+
"type": "string"
|
3406
|
+
},
|
3407
|
+
{
|
3408
|
+
"name": "style",
|
3409
|
+
"description": "The style coming from the animation.",
|
3410
|
+
"$ref": "CSSStyle"
|
3411
|
+
}
|
3412
|
+
]
|
3413
|
+
},
|
3396
3414
|
{
|
3397
3415
|
"id": "InheritedStyleEntry",
|
3398
3416
|
"description": "Inherited CSS rule collection from ancestor node.",
|
@@ -3414,6 +3432,28 @@
|
|
3414
3432
|
}
|
3415
3433
|
]
|
3416
3434
|
},
|
3435
|
+
{
|
3436
|
+
"id": "InheritedAnimatedStyleEntry",
|
3437
|
+
"description": "Inherited CSS style collection for animated styles from ancestor node.",
|
3438
|
+
"type": "object",
|
3439
|
+
"properties": [
|
3440
|
+
{
|
3441
|
+
"name": "animationStyles",
|
3442
|
+
"description": "Styles coming from the animations of the ancestor, if any, in the style inheritance chain.",
|
3443
|
+
"optional": true,
|
3444
|
+
"type": "array",
|
3445
|
+
"items": {
|
3446
|
+
"$ref": "CSSAnimationStyle"
|
3447
|
+
}
|
3448
|
+
},
|
3449
|
+
{
|
3450
|
+
"name": "transitionsStyle",
|
3451
|
+
"description": "The style coming from the transitions of the ancestor, if any, in the style inheritance chain.",
|
3452
|
+
"optional": true,
|
3453
|
+
"$ref": "CSSStyle"
|
3454
|
+
}
|
3455
|
+
]
|
3456
|
+
},
|
3417
3457
|
{
|
3418
3458
|
"id": "InheritedPseudoElementMatches",
|
3419
3459
|
"description": "Inherited pseudo element matches from pseudos of an ancestor node.",
|
@@ -4644,6 +4684,22 @@
|
|
4644
4684
|
}
|
4645
4685
|
]
|
4646
4686
|
},
|
4687
|
+
{
|
4688
|
+
"name": "forceStartingStyle",
|
4689
|
+
"description": "Ensures that the given node is in its starting-style state.",
|
4690
|
+
"parameters": [
|
4691
|
+
{
|
4692
|
+
"name": "nodeId",
|
4693
|
+
"description": "The element id for which to force the starting-style state.",
|
4694
|
+
"$ref": "DOM.NodeId"
|
4695
|
+
},
|
4696
|
+
{
|
4697
|
+
"name": "forced",
|
4698
|
+
"description": "Boolean indicating if this is on or off.",
|
4699
|
+
"type": "boolean"
|
4700
|
+
}
|
4701
|
+
]
|
4702
|
+
},
|
4647
4703
|
{
|
4648
4704
|
"name": "getBackgroundColors",
|
4649
4705
|
"parameters": [
|
@@ -4769,6 +4825,43 @@
|
|
4769
4825
|
}
|
4770
4826
|
]
|
4771
4827
|
},
|
4828
|
+
{
|
4829
|
+
"name": "getAnimatedStylesForNode",
|
4830
|
+
"description": "Returns the styles coming from animations & transitions\nincluding the animation & transition styles coming from inheritance chain.",
|
4831
|
+
"experimental": true,
|
4832
|
+
"parameters": [
|
4833
|
+
{
|
4834
|
+
"name": "nodeId",
|
4835
|
+
"$ref": "DOM.NodeId"
|
4836
|
+
}
|
4837
|
+
],
|
4838
|
+
"returns": [
|
4839
|
+
{
|
4840
|
+
"name": "animationStyles",
|
4841
|
+
"description": "Styles coming from animations.",
|
4842
|
+
"optional": true,
|
4843
|
+
"type": "array",
|
4844
|
+
"items": {
|
4845
|
+
"$ref": "CSSAnimationStyle"
|
4846
|
+
}
|
4847
|
+
},
|
4848
|
+
{
|
4849
|
+
"name": "transitionsStyle",
|
4850
|
+
"description": "Style coming from transitions.",
|
4851
|
+
"optional": true,
|
4852
|
+
"$ref": "CSSStyle"
|
4853
|
+
},
|
4854
|
+
{
|
4855
|
+
"name": "inherited",
|
4856
|
+
"description": "Inherited style entries for animationsStyle and transitionsStyle from\nthe inheritance chain of the element.",
|
4857
|
+
"optional": true,
|
4858
|
+
"type": "array",
|
4859
|
+
"items": {
|
4860
|
+
"$ref": "InheritedAnimatedStyleEntry"
|
4861
|
+
}
|
4862
|
+
}
|
4863
|
+
]
|
4864
|
+
},
|
4772
4865
|
{
|
4773
4866
|
"name": "getMatchedStylesForNode",
|
4774
4867
|
"description": "Returns requested styles for a DOM node identified by `nodeId`.",
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -1701,6 +1701,14 @@ experimental domain CSS
|
|
1701
1701
|
# Matches of CSS rules applicable to the pseudo style.
|
1702
1702
|
array of RuleMatch matches
|
1703
1703
|
|
1704
|
+
# CSS style coming from animations with the name of the animation.
|
1705
|
+
type CSSAnimationStyle extends object
|
1706
|
+
properties
|
1707
|
+
# The name of the animation.
|
1708
|
+
optional string name
|
1709
|
+
# The style coming from the animation.
|
1710
|
+
CSSStyle style
|
1711
|
+
|
1704
1712
|
# Inherited CSS rule collection from ancestor node.
|
1705
1713
|
type InheritedStyleEntry extends object
|
1706
1714
|
properties
|
@@ -1709,6 +1717,14 @@ experimental domain CSS
|
|
1709
1717
|
# Matches of CSS rules matching the ancestor node in the style inheritance chain.
|
1710
1718
|
array of RuleMatch matchedCSSRules
|
1711
1719
|
|
1720
|
+
# Inherited CSS style collection for animated styles from ancestor node.
|
1721
|
+
type InheritedAnimatedStyleEntry extends object
|
1722
|
+
properties
|
1723
|
+
# Styles coming from the animations of the ancestor, if any, in the style inheritance chain.
|
1724
|
+
optional array of CSSAnimationStyle animationStyles
|
1725
|
+
# The style coming from the transitions of the ancestor, if any, in the style inheritance chain.
|
1726
|
+
optional CSSStyle transitionsStyle
|
1727
|
+
|
1712
1728
|
# Inherited pseudo element matches from pseudos of an ancestor node.
|
1713
1729
|
type InheritedPseudoElementMatches extends object
|
1714
1730
|
properties
|
@@ -2239,6 +2255,14 @@ experimental domain CSS
|
|
2239
2255
|
# Element pseudo classes to force when computing the element's style.
|
2240
2256
|
array of string forcedPseudoClasses
|
2241
2257
|
|
2258
|
+
# Ensures that the given node is in its starting-style state.
|
2259
|
+
command forceStartingStyle
|
2260
|
+
parameters
|
2261
|
+
# The element id for which to force the starting-style state.
|
2262
|
+
DOM.NodeId nodeId
|
2263
|
+
# Boolean indicating if this is on or off.
|
2264
|
+
boolean forced
|
2265
|
+
|
2242
2266
|
command getBackgroundColors
|
2243
2267
|
parameters
|
2244
2268
|
# Id of the node to get background colors for.
|
@@ -2296,6 +2320,20 @@ experimental domain CSS
|
|
2296
2320
|
# Attribute-defined element style (e.g. resulting from "width=20 height=100%").
|
2297
2321
|
optional CSSStyle attributesStyle
|
2298
2322
|
|
2323
|
+
# Returns the styles coming from animations & transitions
|
2324
|
+
# including the animation & transition styles coming from inheritance chain.
|
2325
|
+
experimental command getAnimatedStylesForNode
|
2326
|
+
parameters
|
2327
|
+
DOM.NodeId nodeId
|
2328
|
+
returns
|
2329
|
+
# Styles coming from animations.
|
2330
|
+
optional array of CSSAnimationStyle animationStyles
|
2331
|
+
# Style coming from transitions.
|
2332
|
+
optional CSSStyle transitionsStyle
|
2333
|
+
# Inherited style entries for animationsStyle and transitionsStyle from
|
2334
|
+
# the inheritance chain of the element.
|
2335
|
+
optional array of InheritedAnimatedStyleEntry inherited
|
2336
|
+
|
2299
2337
|
# Returns requested styles for a DOM node identified by `nodeId`.
|
2300
2338
|
command getMatchedStylesForNode
|
2301
2339
|
parameters
|
@@ -1807,6 +1807,13 @@ export namespace ProtocolMapping {
|
|
1807
1807
|
paramsType: [Protocol.CSS.ForcePseudoStateRequest];
|
1808
1808
|
returnType: void;
|
1809
1809
|
};
|
1810
|
+
/**
|
1811
|
+
* Ensures that the given node is in its starting-style state.
|
1812
|
+
*/
|
1813
|
+
'CSS.forceStartingStyle': {
|
1814
|
+
paramsType: [Protocol.CSS.ForceStartingStyleRequest];
|
1815
|
+
returnType: void;
|
1816
|
+
};
|
1810
1817
|
'CSS.getBackgroundColors': {
|
1811
1818
|
paramsType: [Protocol.CSS.GetBackgroundColorsRequest];
|
1812
1819
|
returnType: Protocol.CSS.GetBackgroundColorsResponse;
|
@@ -1836,6 +1843,14 @@ export namespace ProtocolMapping {
|
|
1836
1843
|
paramsType: [Protocol.CSS.GetInlineStylesForNodeRequest];
|
1837
1844
|
returnType: Protocol.CSS.GetInlineStylesForNodeResponse;
|
1838
1845
|
};
|
1846
|
+
/**
|
1847
|
+
* Returns the styles coming from animations & transitions
|
1848
|
+
* including the animation & transition styles coming from inheritance chain.
|
1849
|
+
*/
|
1850
|
+
'CSS.getAnimatedStylesForNode': {
|
1851
|
+
paramsType: [Protocol.CSS.GetAnimatedStylesForNodeRequest];
|
1852
|
+
returnType: Protocol.CSS.GetAnimatedStylesForNodeResponse;
|
1853
|
+
};
|
1839
1854
|
/**
|
1840
1855
|
* Returns requested styles for a DOM node identified by `nodeId`.
|
1841
1856
|
*/
|
@@ -1054,6 +1054,11 @@ export namespace ProtocolProxyApi {
|
|
1054
1054
|
*/
|
1055
1055
|
forcePseudoState(params: Protocol.CSS.ForcePseudoStateRequest): Promise<void>;
|
1056
1056
|
|
1057
|
+
/**
|
1058
|
+
* Ensures that the given node is in its starting-style state.
|
1059
|
+
*/
|
1060
|
+
forceStartingStyle(params: Protocol.CSS.ForceStartingStyleRequest): Promise<void>;
|
1061
|
+
|
1057
1062
|
getBackgroundColors(params: Protocol.CSS.GetBackgroundColorsRequest): Promise<Protocol.CSS.GetBackgroundColorsResponse>;
|
1058
1063
|
|
1059
1064
|
/**
|
@@ -1075,6 +1080,12 @@ export namespace ProtocolProxyApi {
|
|
1075
1080
|
*/
|
1076
1081
|
getInlineStylesForNode(params: Protocol.CSS.GetInlineStylesForNodeRequest): Promise<Protocol.CSS.GetInlineStylesForNodeResponse>;
|
1077
1082
|
|
1083
|
+
/**
|
1084
|
+
* Returns the styles coming from animations & transitions
|
1085
|
+
* including the animation & transition styles coming from inheritance chain.
|
1086
|
+
*/
|
1087
|
+
getAnimatedStylesForNode(params: Protocol.CSS.GetAnimatedStylesForNodeRequest): Promise<Protocol.CSS.GetAnimatedStylesForNodeResponse>;
|
1088
|
+
|
1078
1089
|
/**
|
1079
1090
|
* Returns requested styles for a DOM node identified by `nodeId`.
|
1080
1091
|
*/
|
@@ -1122,6 +1122,11 @@ export namespace ProtocolTestsProxyApi {
|
|
1122
1122
|
*/
|
1123
1123
|
forcePseudoState(params: Protocol.CSS.ForcePseudoStateRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1124
1124
|
|
1125
|
+
/**
|
1126
|
+
* Ensures that the given node is in its starting-style state.
|
1127
|
+
*/
|
1128
|
+
forceStartingStyle(params: Protocol.CSS.ForceStartingStyleRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1129
|
+
|
1125
1130
|
getBackgroundColors(params: Protocol.CSS.GetBackgroundColorsRequest): Promise<{id: number, result: Protocol.CSS.GetBackgroundColorsResponse, sessionId: string}>;
|
1126
1131
|
|
1127
1132
|
/**
|
@@ -1143,6 +1148,12 @@ export namespace ProtocolTestsProxyApi {
|
|
1143
1148
|
*/
|
1144
1149
|
getInlineStylesForNode(params: Protocol.CSS.GetInlineStylesForNodeRequest): Promise<{id: number, result: Protocol.CSS.GetInlineStylesForNodeResponse, sessionId: string}>;
|
1145
1150
|
|
1151
|
+
/**
|
1152
|
+
* Returns the styles coming from animations & transitions
|
1153
|
+
* including the animation & transition styles coming from inheritance chain.
|
1154
|
+
*/
|
1155
|
+
getAnimatedStylesForNode(params: Protocol.CSS.GetAnimatedStylesForNodeRequest): Promise<{id: number, result: Protocol.CSS.GetAnimatedStylesForNodeResponse, sessionId: string}>;
|
1156
|
+
|
1146
1157
|
/**
|
1147
1158
|
* Returns requested styles for a DOM node identified by `nodeId`.
|
1148
1159
|
*/
|
package/types/protocol.d.ts
CHANGED
@@ -4539,6 +4539,20 @@ export namespace Protocol {
|
|
4539
4539
|
matches: RuleMatch[];
|
4540
4540
|
}
|
4541
4541
|
|
4542
|
+
/**
|
4543
|
+
* CSS style coming from animations with the name of the animation.
|
4544
|
+
*/
|
4545
|
+
export interface CSSAnimationStyle {
|
4546
|
+
/**
|
4547
|
+
* The name of the animation.
|
4548
|
+
*/
|
4549
|
+
name?: string;
|
4550
|
+
/**
|
4551
|
+
* The style coming from the animation.
|
4552
|
+
*/
|
4553
|
+
style: CSSStyle;
|
4554
|
+
}
|
4555
|
+
|
4542
4556
|
/**
|
4543
4557
|
* Inherited CSS rule collection from ancestor node.
|
4544
4558
|
*/
|
@@ -4553,6 +4567,20 @@ export namespace Protocol {
|
|
4553
4567
|
matchedCSSRules: RuleMatch[];
|
4554
4568
|
}
|
4555
4569
|
|
4570
|
+
/**
|
4571
|
+
* Inherited CSS style collection for animated styles from ancestor node.
|
4572
|
+
*/
|
4573
|
+
export interface InheritedAnimatedStyleEntry {
|
4574
|
+
/**
|
4575
|
+
* Styles coming from the animations of the ancestor, if any, in the style inheritance chain.
|
4576
|
+
*/
|
4577
|
+
animationStyles?: CSSAnimationStyle[];
|
4578
|
+
/**
|
4579
|
+
* The style coming from the transitions of the ancestor, if any, in the style inheritance chain.
|
4580
|
+
*/
|
4581
|
+
transitionsStyle?: CSSStyle;
|
4582
|
+
}
|
4583
|
+
|
4556
4584
|
/**
|
4557
4585
|
* Inherited pseudo element matches from pseudos of an ancestor node.
|
4558
4586
|
*/
|
@@ -5446,6 +5474,17 @@ export namespace Protocol {
|
|
5446
5474
|
forcedPseudoClasses: string[];
|
5447
5475
|
}
|
5448
5476
|
|
5477
|
+
export interface ForceStartingStyleRequest {
|
5478
|
+
/**
|
5479
|
+
* The element id for which to force the starting-style state.
|
5480
|
+
*/
|
5481
|
+
nodeId: DOM.NodeId;
|
5482
|
+
/**
|
5483
|
+
* Boolean indicating if this is on or off.
|
5484
|
+
*/
|
5485
|
+
forced: boolean;
|
5486
|
+
}
|
5487
|
+
|
5449
5488
|
export interface GetBackgroundColorsRequest {
|
5450
5489
|
/**
|
5451
5490
|
* Id of the node to get background colors for.
|
@@ -5528,6 +5567,26 @@ export namespace Protocol {
|
|
5528
5567
|
attributesStyle?: CSSStyle;
|
5529
5568
|
}
|
5530
5569
|
|
5570
|
+
export interface GetAnimatedStylesForNodeRequest {
|
5571
|
+
nodeId: DOM.NodeId;
|
5572
|
+
}
|
5573
|
+
|
5574
|
+
export interface GetAnimatedStylesForNodeResponse {
|
5575
|
+
/**
|
5576
|
+
* Styles coming from animations.
|
5577
|
+
*/
|
5578
|
+
animationStyles?: CSSAnimationStyle[];
|
5579
|
+
/**
|
5580
|
+
* Style coming from transitions.
|
5581
|
+
*/
|
5582
|
+
transitionsStyle?: CSSStyle;
|
5583
|
+
/**
|
5584
|
+
* Inherited style entries for animationsStyle and transitionsStyle from
|
5585
|
+
* the inheritance chain of the element.
|
5586
|
+
*/
|
5587
|
+
inherited?: InheritedAnimatedStyleEntry[];
|
5588
|
+
}
|
5589
|
+
|
5531
5590
|
export interface GetMatchedStylesForNodeRequest {
|
5532
5591
|
nodeId: DOM.NodeId;
|
5533
5592
|
}
|