CSS.getMatchedStylesForNode

Returns requested styles for a DOM node identified by `nodeId`.

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