← Back to DOM domain

DOM.getRelayoutBoundary

Returns the id of the nearest ancestor that is a relayout boundary.

Domain: DOM experimental

Parameters

NameTypeDescription
nodeIdNodeIdId of the node.

Returns

NameTypeDescription
nodeIdNodeIdRelayout boundary node id for the given node.

Example Request

{
  "id": 1,
  "method": "DOM.getRelayoutBoundary",
  "params": {
    "nodeId": 1
  }
}

Example Response

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

Usage in Node.js

const result = await send('DOM.getRelayoutBoundary', {"nodeId": 1});
console.log(result);
// {"nodeId": 3}