CSS.forcePseudoState

Ensures that the given node will have specified pseudo-classes whenever its style is computed by the browser.

{
  "name": "forcePseudoState",
  "parameters": [
    {
      "name": "nodeId",
      "$ref": "DOM.NodeId",
      "description": "The element id for which to force the pseudo state."
    },
    {
      "name": "forcedPseudoClasses",
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "active",
          "focus",
          "hover",
          "visited"
        ]
      },
      "description": "Element pseudo classes to force when computing the element's style."
    }
  ],
  "description": "Ensures that the given node will have specified pseudo-classes whenever its style is computed by the browser."
}