Skip to content

renderdiff probe: list elements whose box varies between loads #73

Closed

Description

@tmashara

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

  1. added
    enhancement
    on Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions