← Back to CSS domain

CSS.trackComputedStyleUpdatesForNode

Starts tracking the given node for the computed style updates and whenever the computed style is updated for node, it queues a `computedStyleUpdated` event with throttling. There can only be 1 node tracked for computed style updates so passing a new node id removes tracking from the previous node. Pass `undefined` to disable tracking.

Domain: CSS experimental

Parameters

NameTypeDescription
nodeId (optional)DOM.NodeId

Example Request

{
  "id": 1,
  "method": "CSS.trackComputedStyleUpdatesForNode"
}

Example Response

{
  "id": 1,
  "result": {}
}

Usage in Node.js

const result = await send('CSS.trackComputedStyleUpdatesForNode');
console.log(result);