← Back to Overlay domain

Overlay.highlightSourceOrder

Highlights the source order of the children of the DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified.

Domain: Overlay experimental

Parameters

NameTypeDescription
sourceOrderConfigSourceOrderConfigA descriptor for the appearance of the overlay drawing.
nodeId (optional)DOM.NodeIdIdentifier of the node to highlight.
backendNodeId (optional)DOM.BackendNodeIdIdentifier of the backend node to highlight.
objectId (optional)Runtime.RemoteObjectIdJavaScript object id of the node to be highlighted.

Example Request

{
  "id": 1,
  "method": "Overlay.highlightSourceOrder",
  "params": {
    "sourceOrderConfig": "sourceOrderConfig-value"
  }
}

Example Response

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

Usage in Node.js

const result = await send('Overlay.highlightSourceOrder', {"sourceOrderConfig": "sourceOrderConfig-value"});
console.log(result);