compute_viewport_reflow
Detect layout breakage across viewport sizes by measuring position and size shifts of tracked elements, identifying which elements move most on mobile and desktop.
Instructions
Measures how element positions and sizes change across multiple viewport sizes. Use to answer: does the layout break on mobile? Which elements shift most when resizing?
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL of the page to analyze | |
| selectors | Yes | CSS selectors to track across viewports | |
| viewports | Yes | Viewport sizes to compare — e.g. [{width:375,height:812},{width:1280,height:720}] |