← Back to CSS domain

CSS.trackComputedStyleUpdates

Starts tracking the given computed styles for updates. The specified array of properties replaces the one previously specified. Pass empty array to disable tracking. Use takeComputedStyleUpdates to retrieve the list of nodes that had properties modified. The changes to computed style properties are only tracked for nodes pushed to the front-end by the DOM agent. If no changes to the tracked properties occur after the node has been pushed to the front-end, no updates will be issued for the node.

Domain: CSS experimental

Parameters

NameTypeDescription
propertiesToTrackarray

Example Request

{
  "id": 1,
  "method": "CSS.trackComputedStyleUpdates",
  "params": {
    "propertiesToTrack": []
  }
}

Example Response

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

Usage in Node.js

const result = await send('CSS.trackComputedStyleUpdates', {"propertiesToTrack": []});
console.log(result);