Open Bug 2091312 Opened 10 days ago Updated 10 days ago

Compare screenshots of many surfaces across color modes on one page in desktop-theme-screenshots

Categories

(Developer Infrastructure :: AI for Development, enhancement)

enhancement

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: dao, Assigned: dao)

References

(Blocks 1 open bug)

Details

Attachments

(2 external files)

The desktop-theme-screenshots skill captures and compares one before/after pair at a time. A color change that reaches many surfaces needs the same comparison across each surface and state in every color mode: light and dark, high contrast, forced colors, the native theme and an add-on theme. The ghost button color changes (bug 2084614, bug 2084626, bug 2084656) needed about 30 surfaces and states in 12 color modes, compared by hand-written scripts.

This adds a runner that takes a file listing the surfaces and the color modes, captures each combination with capture-pair.sh --probe, and builds one page with the pairs. The page lists first the pairs where a measured color or contrast changed, then those with the same failure before and after, then those that differ only in pixels, and describes each difference from the measurements. It also adds --diff-image to ./mach theme pixel-diff, so the page can show where each pair differs.

The pixel_diff.py part moves the mask code into diff_mask() for matrix.py to import, with no functional change.

The skill's description stays as it is: "before/after screenshots" already routes a request to compare many surfaces here, and every agent session loads the description.

Assignee: nobody → dao+bmo
Status: NEW → ASSIGNED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: