devtools-protocol 0.0.1393284 → 0.0.1395251
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.",
|
@@ -4769,6 +4809,43 @@
|
|
4769
4809
|
}
|
4770
4810
|
]
|
4771
4811
|
},
|
4812
|
+
{
|
4813
|
+
"name": "getAnimatedStylesForNode",
|
4814
|
+
"description": "Returns the styles coming from animations & transitions\nincluding the animation & transition styles coming from inheritance chain.",
|
4815
|
+
"experimental": true,
|
4816
|
+
"parameters": [
|
4817
|
+
{
|
4818
|
+
"name": "nodeId",
|
4819
|
+
"$ref": "DOM.NodeId"
|
4820
|
+
}
|
4821
|
+
],
|
4822
|
+
"returns": [
|
4823
|
+
{
|
4824
|
+
"name": "animationStyles",
|
4825
|
+
"description": "Styles coming from animations.",
|
4826
|
+
"optional": true,
|
4827
|
+
"type": "array",
|
4828
|
+
"items": {
|
4829
|
+
"$ref": "CSSAnimationStyle"
|
4830
|
+
}
|
4831
|
+
},
|
4832
|
+
{
|
4833
|
+
"name": "transitionsStyle",
|
4834
|
+
"description": "Style coming from transitions.",
|
4835
|
+
"optional": true,
|
4836
|
+
"$ref": "CSSStyle"
|
4837
|
+
},
|
4838
|
+
{
|
4839
|
+
"name": "inherited",
|
4840
|
+
"description": "Inherited style entries for animationsStyle and transitionsStyle from\nthe inheritance chain of the element.",
|
4841
|
+
"optional": true,
|
4842
|
+
"type": "array",
|
4843
|
+
"items": {
|
4844
|
+
"$ref": "InheritedAnimatedStyleEntry"
|
4845
|
+
}
|
4846
|
+
}
|
4847
|
+
]
|
4848
|
+
},
|
4772
4849
|
{
|
4773
4850
|
"name": "getMatchedStylesForNode",
|
4774
4851
|
"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
|
@@ -2296,6 +2312,20 @@ experimental domain CSS
|
|
2296
2312
|
# Attribute-defined element style (e.g. resulting from "width=20 height=100%").
|
2297
2313
|
optional CSSStyle attributesStyle
|
2298
2314
|
|
2315
|
+
# Returns the styles coming from animations & transitions
|
2316
|
+
# including the animation & transition styles coming from inheritance chain.
|
2317
|
+
experimental command getAnimatedStylesForNode
|
2318
|
+
parameters
|
2319
|
+
DOM.NodeId nodeId
|
2320
|
+
returns
|
2321
|
+
# Styles coming from animations.
|
2322
|
+
optional array of CSSAnimationStyle animationStyles
|
2323
|
+
# Style coming from transitions.
|
2324
|
+
optional CSSStyle transitionsStyle
|
2325
|
+
# Inherited style entries for animationsStyle and transitionsStyle from
|
2326
|
+
# the inheritance chain of the element.
|
2327
|
+
optional array of InheritedAnimatedStyleEntry inherited
|
2328
|
+
|
2299
2329
|
# Returns requested styles for a DOM node identified by `nodeId`.
|
2300
2330
|
command getMatchedStylesForNode
|
2301
2331
|
parameters
|
@@ -1836,6 +1836,14 @@ export namespace ProtocolMapping {
|
|
1836
1836
|
paramsType: [Protocol.CSS.GetInlineStylesForNodeRequest];
|
1837
1837
|
returnType: Protocol.CSS.GetInlineStylesForNodeResponse;
|
1838
1838
|
};
|
1839
|
+
/**
|
1840
|
+
* Returns the styles coming from animations & transitions
|
1841
|
+
* including the animation & transition styles coming from inheritance chain.
|
1842
|
+
*/
|
1843
|
+
'CSS.getAnimatedStylesForNode': {
|
1844
|
+
paramsType: [Protocol.CSS.GetAnimatedStylesForNodeRequest];
|
1845
|
+
returnType: Protocol.CSS.GetAnimatedStylesForNodeResponse;
|
1846
|
+
};
|
1839
1847
|
/**
|
1840
1848
|
* Returns requested styles for a DOM node identified by `nodeId`.
|
1841
1849
|
*/
|
@@ -1075,6 +1075,12 @@ export namespace ProtocolProxyApi {
|
|
1075
1075
|
*/
|
1076
1076
|
getInlineStylesForNode(params: Protocol.CSS.GetInlineStylesForNodeRequest): Promise<Protocol.CSS.GetInlineStylesForNodeResponse>;
|
1077
1077
|
|
1078
|
+
/**
|
1079
|
+
* Returns the styles coming from animations & transitions
|
1080
|
+
* including the animation & transition styles coming from inheritance chain.
|
1081
|
+
*/
|
1082
|
+
getAnimatedStylesForNode(params: Protocol.CSS.GetAnimatedStylesForNodeRequest): Promise<Protocol.CSS.GetAnimatedStylesForNodeResponse>;
|
1083
|
+
|
1078
1084
|
/**
|
1079
1085
|
* Returns requested styles for a DOM node identified by `nodeId`.
|
1080
1086
|
*/
|
@@ -1143,6 +1143,12 @@ export namespace ProtocolTestsProxyApi {
|
|
1143
1143
|
*/
|
1144
1144
|
getInlineStylesForNode(params: Protocol.CSS.GetInlineStylesForNodeRequest): Promise<{id: number, result: Protocol.CSS.GetInlineStylesForNodeResponse, sessionId: string}>;
|
1145
1145
|
|
1146
|
+
/**
|
1147
|
+
* Returns the styles coming from animations & transitions
|
1148
|
+
* including the animation & transition styles coming from inheritance chain.
|
1149
|
+
*/
|
1150
|
+
getAnimatedStylesForNode(params: Protocol.CSS.GetAnimatedStylesForNodeRequest): Promise<{id: number, result: Protocol.CSS.GetAnimatedStylesForNodeResponse, sessionId: string}>;
|
1151
|
+
|
1146
1152
|
/**
|
1147
1153
|
* Returns requested styles for a DOM node identified by `nodeId`.
|
1148
1154
|
*/
|
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
|
*/
|
@@ -5528,6 +5556,26 @@ export namespace Protocol {
|
|
5528
5556
|
attributesStyle?: CSSStyle;
|
5529
5557
|
}
|
5530
5558
|
|
5559
|
+
export interface GetAnimatedStylesForNodeRequest {
|
5560
|
+
nodeId: DOM.NodeId;
|
5561
|
+
}
|
5562
|
+
|
5563
|
+
export interface GetAnimatedStylesForNodeResponse {
|
5564
|
+
/**
|
5565
|
+
* Styles coming from animations.
|
5566
|
+
*/
|
5567
|
+
animationStyles?: CSSAnimationStyle[];
|
5568
|
+
/**
|
5569
|
+
* Style coming from transitions.
|
5570
|
+
*/
|
5571
|
+
transitionsStyle?: CSSStyle;
|
5572
|
+
/**
|
5573
|
+
* Inherited style entries for animationsStyle and transitionsStyle from
|
5574
|
+
* the inheritance chain of the element.
|
5575
|
+
*/
|
5576
|
+
inherited?: InheritedAnimatedStyleEntry[];
|
5577
|
+
}
|
5578
|
+
|
5531
5579
|
export interface GetMatchedStylesForNodeRequest {
|
5532
5580
|
nodeId: DOM.NodeId;
|
5533
5581
|
}
|