You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
renderdiff probe: list elements whose box varies between loads #73
What renderdiff probe <url> --width N --loads 8. It reruns the capture pipeline on one route several times and lists the elements whose box (x, y, w, h) or chosen computed styles differ between loads.
Why
The hardest noise had 0 unstable pixels, because it was bistable across loads rather than moving within one. Examples:
a video.js player came out 366.2 or 380.5 px tall;
another player's position flipped.
The unstable-pixel location only covers movement within a single load. Finding these took about 12 hand-written probes:
MutationObserver and timer logs;
a ResizeObserver per element;
a replay of renderdiff's capture via dist/config.js and dist/capture.js over N loads.
That was about 30 minutes.
How
Reuse prepare and settle. After each load, snapshot every element's rect plus a few layout properties, keyed the same way --computed keys elements, and print the keys whose values vary. Concurrency matters: run the loads in parallel, as the real run does.
Activity