measure_spacing
Measure the gap, overlap, and distance in CSS pixels between two elements, including margins and paddings. Provides read-only values from the current layout for accurate spacing analysis.
Instructions
Measure the gap, overlap and distance in CSS pixels between two elements, with their margins and paddings. Read-only. Values come from the current layout, so zoom and viewport size change them: set_zoom(1) and a fixed viewport_resize make results comparable across runs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_id | No | Target tab; omitted = last tab navigated in this session, else the active one | |
| selector1 | Yes | First element; distances are measured from its box | |
| selector2 | Yes | Second element; ">>>" pierces shadow DOM |