Opacity pixel checks wait for settled WebKit frames (#442) #524

Closed
kayg wants to merge 0 commits from issue/442-opacity-flake into dev
Owner

References #442.

The opacity test waited a fixed 700 ms after the remote photo became shown. That signal starts a 450 ms CSS fade, but a wall clock delay does not guarantee WebKit has painted the settled frame under load. The test now waits for CSS motion to finish and for two frames before sampling the 100% and 0% endpoints. The 60% and 20% alpha checks remain. Pixel decoding now uses the existing page instead of opening a temporary browser page.

The color thresholds are unchanged.

Before repro, webkit-1440 --repeat-each=10:

Error: blue shows through at 0% (full)
Expected: > 63
Received: 39
6 failed
64 passed (20.8m)

After targeted WebKit run, 30 repeats:

30 passed (9.6m)

Four project matrix, --repeat-each=3:

18 skipped
66 passed (11.2m)

bun run check / svelte-check:

COMPLETED 526 FILES 0 ERRORS 12 WARNINGS 7 FILES_WITH_PROBLEMS

The 12 warnings are in existing files outside this change.

References #442. The opacity test waited a fixed 700 ms after the remote photo became shown. That signal starts a 450 ms CSS fade, but a wall clock delay does not guarantee WebKit has painted the settled frame under load. The test now waits for CSS motion to finish and for two frames before sampling the 100% and 0% endpoints. The 60% and 20% alpha checks remain. Pixel decoding now uses the existing page instead of opening a temporary browser page. The color thresholds are unchanged. Before repro, `webkit-1440 --repeat-each=10`: ```text Error: blue shows through at 0% (full) Expected: > 63 Received: 39 6 failed 64 passed (20.8m) ``` After targeted WebKit run, 30 repeats: ```text 30 passed (9.6m) ``` Four project matrix, `--repeat-each=3`: ```text 18 skipped 66 passed (11.2m) ``` `bun run check` / svelte-check: ```text COMPLETED 526 FILES 0 ERRORS 12 WARNINGS 7 FILES_WITH_PROBLEMS ``` The 12 warnings are in existing files outside this change.
E2E: sample opacity after backdrop settles (#442)
Some checks failed
CI / server (pull_request) Successful in 31s
CI / rust (pull_request) Failing after 2m38s
CI / web (pull_request) Failing after 41m44s
a2e841cce9
Author
Owner

Landed in train w2, #532.

Landed in train w2, #532.
kayg closed this pull request 2026-10-17 12:57:45 +00:00
Some checks failed
CI / server (pull_request) Successful in 31s
CI / rust (pull_request) Failing after 2m38s
CI / web (pull_request) Failing after 41m44s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal!524
No description provided.