Skip to content

Commit

Permalink
Roll protocol to r1395251
Browse files Browse the repository at this point in the history
  • Loading branch information
devtools-bot committed Dec 12, 2024
1 parent dff3f42 commit e61f211
Show file tree
Hide file tree
Showing 8 changed files with 234 additions and 2 deletions.
59 changes: 58 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,64 @@


## Roll protocol to r1395251 — _2024-12-12T04:30:26.000Z_
###### Diff: [`dff3f42...0f31152`](https://github.com/ChromeDevTools/devtools-protocol/compare/dff3f42...0f31152)

```diff
@@ browser_protocol.pdl:1701 @@ experimental domain CSS
# Matches of CSS rules applicable to the pseudo style.
array of RuleMatch matches

+ # CSS style coming from animations with the name of the animation.
+ type CSSAnimationStyle extends object
+ properties
+ # The name of the animation.
+ optional string name
+ # The style coming from the animation.
+ CSSStyle style
+
# Inherited CSS rule collection from ancestor node.
type InheritedStyleEntry extends object
properties
@@ -1709,6 +1717,14 @@ experimental domain CSS
# Matches of CSS rules matching the ancestor node in the style inheritance chain.
array of RuleMatch matchedCSSRules

+ # Inherited CSS style collection for animated styles from ancestor node.
+ type InheritedAnimatedStyleEntry extends object
+ properties
+ # Styles coming from the animations of the ancestor, if any, in the style inheritance chain.
+ optional array of CSSAnimationStyle animationStyles
+ # The style coming from the transitions of the ancestor, if any, in the style inheritance chain.
+ optional CSSStyle transitionsStyle
+
# Inherited pseudo element matches from pseudos of an ancestor node.
type InheritedPseudoElementMatches extends object
properties
@@ -2296,6 +2312,20 @@ experimental domain CSS
# Attribute-defined element style (e.g. resulting from "width=20 height=100%").
optional CSSStyle attributesStyle

+ # Returns the styles coming from animations & transitions
+ # including the animation & transition styles coming from inheritance chain.
+ experimental command getAnimatedStylesForNode
+ parameters
+ DOM.NodeId nodeId
+ returns
+ # Styles coming from animations.
+ optional array of CSSAnimationStyle animationStyles
+ # Style coming from transitions.
+ optional CSSStyle transitionsStyle
+ # Inherited style entries for animationsStyle and transitionsStyle from
+ # the inheritance chain of the element.
+ optional array of InheritedAnimatedStyleEntry inherited
+
# Returns requested styles for a DOM node identified by `nodeId`.
command getMatchedStylesForNode
parameters
```

## Roll protocol to r1393284 — _2024-12-07T04:30:05.000Z_
###### Diff: [`d2f3487...4de2d35`](https://github.com/ChromeDevTools/devtools-protocol/compare/d2f3487...4de2d35)
###### Diff: [`d2f3487...dff3f42`](https://github.com/ChromeDevTools/devtools-protocol/compare/d2f3487...dff3f42)

```diff
@@ js_protocol.pdl:641 @@ domain Debugger
Expand Down
77 changes: 77 additions & 0 deletions json/browser_protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -3393,6 +3393,24 @@
}
]
},
{
"id": "CSSAnimationStyle",
"description": "CSS style coming from animations with the name of the animation.",
"type": "object",
"properties": [
{
"name": "name",
"description": "The name of the animation.",
"optional": true,
"type": "string"
},
{
"name": "style",
"description": "The style coming from the animation.",
"$ref": "CSSStyle"
}
]
},
{
"id": "InheritedStyleEntry",
"description": "Inherited CSS rule collection from ancestor node.",
Expand All @@ -3414,6 +3432,28 @@
}
]
},
{
"id": "InheritedAnimatedStyleEntry",
"description": "Inherited CSS style collection for animated styles from ancestor node.",
"type": "object",
"properties": [
{
"name": "animationStyles",
"description": "Styles coming from the animations of the ancestor, if any, in the style inheritance chain.",
"optional": true,
"type": "array",
"items": {
"$ref": "CSSAnimationStyle"
}
},
{
"name": "transitionsStyle",
"description": "The style coming from the transitions of the ancestor, if any, in the style inheritance chain.",
"optional": true,
"$ref": "CSSStyle"
}
]
},
{
"id": "InheritedPseudoElementMatches",
"description": "Inherited pseudo element matches from pseudos of an ancestor node.",
Expand Down Expand Up @@ -4769,6 +4809,43 @@
}
]
},
{
"name": "getAnimatedStylesForNode",
"description": "Returns the styles coming from animations & transitions\nincluding the animation & transition styles coming from inheritance chain.",
"experimental": true,
"parameters": [
{
"name": "nodeId",
"$ref": "DOM.NodeId"
}
],
"returns": [
{
"name": "animationStyles",
"description": "Styles coming from animations.",
"optional": true,
"type": "array",
"items": {
"$ref": "CSSAnimationStyle"
}
},
{
"name": "transitionsStyle",
"description": "Style coming from transitions.",
"optional": true,
"$ref": "CSSStyle"
},
{
"name": "inherited",
"description": "Inherited style entries for animationsStyle and transitionsStyle from\nthe inheritance chain of the element.",
"optional": true,
"type": "array",
"items": {
"$ref": "InheritedAnimatedStyleEntry"
}
}
]
},
{
"name": "getMatchedStylesForNode",
"description": "Returns requested styles for a DOM node identified by `nodeId`.",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "devtools-protocol",
"version": "0.0.1393284",
"version": "0.0.1395251",
"description": "The Chrome DevTools Protocol JSON",
"repository": "https://github.com/ChromeDevTools/devtools-protocol",
"author": "The Chromium Authors",
Expand Down
30 changes: 30 additions & 0 deletions pdl/browser_protocol.pdl
Original file line number Diff line number Diff line change
Expand Up @@ -1701,6 +1701,14 @@ experimental domain CSS
# Matches of CSS rules applicable to the pseudo style.
array of RuleMatch matches

# CSS style coming from animations with the name of the animation.
type CSSAnimationStyle extends object
properties
# The name of the animation.
optional string name
# The style coming from the animation.
CSSStyle style

# Inherited CSS rule collection from ancestor node.
type InheritedStyleEntry extends object
properties
Expand All @@ -1709,6 +1717,14 @@ experimental domain CSS
# Matches of CSS rules matching the ancestor node in the style inheritance chain.
array of RuleMatch matchedCSSRules

# Inherited CSS style collection for animated styles from ancestor node.
type InheritedAnimatedStyleEntry extends object
properties
# Styles coming from the animations of the ancestor, if any, in the style inheritance chain.
optional array of CSSAnimationStyle animationStyles
# The style coming from the transitions of the ancestor, if any, in the style inheritance chain.
optional CSSStyle transitionsStyle

# Inherited pseudo element matches from pseudos of an ancestor node.
type InheritedPseudoElementMatches extends object
properties
Expand Down Expand Up @@ -2296,6 +2312,20 @@ experimental domain CSS
# Attribute-defined element style (e.g. resulting from "width=20 height=100%").
optional CSSStyle attributesStyle

# Returns the styles coming from animations & transitions
# including the animation & transition styles coming from inheritance chain.
experimental command getAnimatedStylesForNode
parameters
DOM.NodeId nodeId
returns
# Styles coming from animations.
optional array of CSSAnimationStyle animationStyles
# Style coming from transitions.
optional CSSStyle transitionsStyle
# Inherited style entries for animationsStyle and transitionsStyle from
# the inheritance chain of the element.
optional array of InheritedAnimatedStyleEntry inherited

# Returns requested styles for a DOM node identified by `nodeId`.
command getMatchedStylesForNode
parameters
Expand Down
8 changes: 8 additions & 0 deletions types/protocol-mapping.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1836,6 +1836,14 @@ export namespace ProtocolMapping {
paramsType: [Protocol.CSS.GetInlineStylesForNodeRequest];
returnType: Protocol.CSS.GetInlineStylesForNodeResponse;
};
/**
* Returns the styles coming from animations & transitions
* including the animation & transition styles coming from inheritance chain.
*/
'CSS.getAnimatedStylesForNode': {
paramsType: [Protocol.CSS.GetAnimatedStylesForNodeRequest];
returnType: Protocol.CSS.GetAnimatedStylesForNodeResponse;
};
/**
* Returns requested styles for a DOM node identified by `nodeId`.
*/
Expand Down
6 changes: 6 additions & 0 deletions types/protocol-proxy-api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1075,6 +1075,12 @@ export namespace ProtocolProxyApi {
*/
getInlineStylesForNode(params: Protocol.CSS.GetInlineStylesForNodeRequest): Promise<Protocol.CSS.GetInlineStylesForNodeResponse>;

/**
* Returns the styles coming from animations & transitions
* including the animation & transition styles coming from inheritance chain.
*/
getAnimatedStylesForNode(params: Protocol.CSS.GetAnimatedStylesForNodeRequest): Promise<Protocol.CSS.GetAnimatedStylesForNodeResponse>;

/**
* Returns requested styles for a DOM node identified by `nodeId`.
*/
Expand Down
6 changes: 6 additions & 0 deletions types/protocol-tests-proxy-api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1143,6 +1143,12 @@ export namespace ProtocolTestsProxyApi {
*/
getInlineStylesForNode(params: Protocol.CSS.GetInlineStylesForNodeRequest): Promise<{id: number, result: Protocol.CSS.GetInlineStylesForNodeResponse, sessionId: string}>;

/**
* Returns the styles coming from animations & transitions
* including the animation & transition styles coming from inheritance chain.
*/
getAnimatedStylesForNode(params: Protocol.CSS.GetAnimatedStylesForNodeRequest): Promise<{id: number, result: Protocol.CSS.GetAnimatedStylesForNodeResponse, sessionId: string}>;

/**
* Returns requested styles for a DOM node identified by `nodeId`.
*/
Expand Down
48 changes: 48 additions & 0 deletions types/protocol.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4539,6 +4539,20 @@ export namespace Protocol {
matches: RuleMatch[];
}

/**
* CSS style coming from animations with the name of the animation.
*/
export interface CSSAnimationStyle {
/**
* The name of the animation.
*/
name?: string;
/**
* The style coming from the animation.
*/
style: CSSStyle;
}

/**
* Inherited CSS rule collection from ancestor node.
*/
Expand All @@ -4553,6 +4567,20 @@ export namespace Protocol {
matchedCSSRules: RuleMatch[];
}

/**
* Inherited CSS style collection for animated styles from ancestor node.
*/
export interface InheritedAnimatedStyleEntry {
/**
* Styles coming from the animations of the ancestor, if any, in the style inheritance chain.
*/
animationStyles?: CSSAnimationStyle[];
/**
* The style coming from the transitions of the ancestor, if any, in the style inheritance chain.
*/
transitionsStyle?: CSSStyle;
}

/**
* Inherited pseudo element matches from pseudos of an ancestor node.
*/
Expand Down Expand Up @@ -5528,6 +5556,26 @@ export namespace Protocol {
attributesStyle?: CSSStyle;
}

export interface GetAnimatedStylesForNodeRequest {
nodeId: DOM.NodeId;
}

export interface GetAnimatedStylesForNodeResponse {
/**
* Styles coming from animations.
*/
animationStyles?: CSSAnimationStyle[];
/**
* Style coming from transitions.
*/
transitionsStyle?: CSSStyle;
/**
* Inherited style entries for animationsStyle and transitionsStyle from
* the inheritance chain of the element.
*/
inherited?: InheritedAnimatedStyleEntry[];
}

export interface GetMatchedStylesForNodeRequest {
nodeId: DOM.NodeId;
}
Expand Down

0 comments on commit e61f211

Please sign in to comment.