← Back to CSS domain

CSS.forceStartingStyle

Ensures that the given node is in its starting-style state.

Domain: CSS experimental

Parameters

NameTypeDescription
nodeIdDOM.NodeIdThe element id for which to force the starting-style state.
forcedbooleanBoolean indicating if this is on or off.

Example Request

{
  "id": 1,
  "method": "CSS.forceStartingStyle",
  "params": {
    "nodeId": 1,
    "forced": true
  }
}

Example Response

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

Usage in Node.js

const result = await send('CSS.forceStartingStyle', {"nodeId": 1, "forced": true});
console.log(result);