CSS.getMatchedStylesForNode

Returns requested styles for a DOM node identified by nodeId.

{
  "name": "getMatchedStylesForNode",
  "parameters": [
    {
      "name": "nodeId",
      "$ref": "DOM.NodeId"
    }
  ],
  "returns": [
    {
      "name": "inlineStyle",
      "$ref": "CSSStyle",
      "optional": true,
      "description": "Inline style for the specified DOM node."
    },
    {
      "name": "attributesStyle",
      "$ref": "CSSStyle",
      "optional": true,
      "description": "Attribute-defined element style (e.g. resulting from \"width=20 height=100%\")."
    },
    {
      "name": "matchedCSSRules",
      "type": "array",
      "items": {
        "$ref": "RuleMatch"
      },
      "optional": true,
      "description": "CSS rules matching this node, from all applicable stylesheets."
    },
    {
      "name": "pseudoElements",
      "type": "array",
      "items": {
        "$ref": "PseudoElementMatches"
      },
      "optional": true,
      "description": "Pseudo style matches for this node."
    },
    {
      "name": "inherited",
      "type": "array",
      "items": {
        "$ref": "InheritedStyleEntry"
      },
      "optional": true,
      "description": "A chain of inherited styles (from the immediate node parent up to the DOM tree root)."
    },
    {
      "name": "cssKeyframesRules",
      "type": "array",
      "items": {
        "$ref": "CSSKeyframesRule"
      },
      "optional": true,
      "description": "A list of CSS keyframed animations matching this node."
    }
  ],
  "description": "Returns requested styles for a DOM node identified by nodeId."
}