← Back to DOM domain
DOM.getRelayoutBoundary
Returns the id of the nearest ancestor that is a relayout boundary.
Domain: DOM
experimental
Parameters
| Name | Type | Description |
nodeId | NodeId | Id of the node. |
Returns
| Name | Type | Description |
nodeId | NodeId | Relayout 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}