CSS.getMatchedStylesForNode
Returns requested styles for a DOM node identified by nodeId
.
{
"name": "getMatchedStylesForNode",
"parameters": [
{
"name": "nodeId",
"$ref": "DOM.NodeId"
},
{
"name": "includePseudo",
"type": "boolean",
"optional": true,
"description": "Whether to include pseudo styles (default: true)."
},
{
"name": "includeInherited",
"type": "boolean",
"optional": true,
"description": "Whether to include inherited styles (default: true)."
}
],
"returns": [
{
"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": "PseudoIdMatches"
},
"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)."
}
],
"description": "Returns requested styles for a DOM node identified by nodeId
."
}