style_diff
Record baseline styles of an element, apply a change, and compare to see only the modified CSS properties.
Instructions
BEFORE/AFTER comparison for one element: record its styles into a named slot, change something, compare — only the properties that changed are reported. Reach for it whenever you ask 'did my fix actually change anything?' or need to prove what an edit / inject_css patch / viewport change / interaction altered. The loop: style_diff{mode:'record'} → apply the change → style_diff{mode:'compare'}. Confirms a fix moved exactly the property you intended, and nothing else.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Viewport x coordinate — use together with y | |
| y | No | Viewport y coordinate — use together with x | |
| uid | No | Element uid from a prior page_snapshot / find_elements | |
| mode | Yes | record: store baseline. compare: diff against it | |
| slot | No | Recording slot name — omit the target on compare to reuse the recorded one | default |
| selector | No | CSS selector (first match) — alternative to uid |