inspect_ancestors
Identify the ancestor that constrains an element's width, height, position, overflow, or stacking. Resolve layout issues where the cause is above the element.
Instructions
Walk an element's ancestor chain for ONE concern — width, height, position, overflow, or stacking — and flag the ancestor that is the binding constraint. Use when the cause lives ABOVE the element: it's too wide/narrow, clipped or cut off, won't scroll, is mysteriously positioned, or a z-index has no effect (trapped in an ancestor's stacking context). Complements explain_styles, which explains the element's own winning rules.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Viewport x coordinate (use with y) | |
| y | No | Viewport y coordinate (use with x) | |
| uid | No | Element uid from a prior page_snapshot (e.g. "e8") | |
| concern | No | Which constraint chain to report (default: width) | |
| selector | No | CSS selector — first match is used |