← Back to CSS domain

CSS.takeComputedStyleUpdates

Polls the next batch of computed style updates.

Domain: CSS experimental

Returns

NameTypeDescription
nodeIdsarrayThe list of node Ids that have their tracked computed styles updated.

Example Request

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

Example Response

{
  "id": 1,
  "result": {
    "nodeIds": [
      3,
      4,
      5
    ]
  }
}

Usage in Node.js

const result = await send('CSS.takeComputedStyleUpdates');
console.log(result);
// {"nodeIds": [3, 4, 5]}