Skip to content

Check the headline glide through engine transitions, not timed samples - #16

Merged
pedrobritx merged 1 commit into
mainfrom
fix/gradient-test-timing
Nov 11, 2026
Merged

pedrobritx merged 1 commit into
mainfrom
fix/gradient-test-timing

Conversation

@pedrobritx

Copy link
Copy Markdown
Owner

Problem

CI on main failed after #15 in Firefox (interface.spec.mjs › headline gradient). 300 ms after hover the first colour stop still read its resting value; 1.5 s later it read the final value. The test sampled a mid-point on a timer, and a hidden CI window can advance animations too rarely for that sample. The deployed-site acceptance run was skipped because CI was red.

Resulting behaviour

Test-only change. The test asks the engine for the CSSTransitions it created instead of sampling colours on a timer:

  • on hover and on leave: three 900 ms transitions on --title-stop-1/2/3;
  • the colours settle on the hovered value, then return to the resting value;
  • under reduced motion: no transitions and no colour change.

Verification

Limitations

  • Could not reproduce the CI timing locally, even under CPU load; the diagnosis rests on the CI log (start value at 300 ms, final value at 1.5 s).

Generated by Claude Code

CI on main failed in Firefox after #15: 300 ms after hover the first
colour stop still read its resting value, and 1.5 s later it read the
final value. A hidden CI window can advance animations too rarely for
a timed mid-point sample, so the test asserted timing, not behaviour.

The test now asks the engine for the CSSTransitions it created: three
900 ms transitions on the registered colour stops on hover and on
leave, none under reduced motion, and the resting and final colours.
It still fails against the pre-#15 CSS and passes 3/3 repeated runs in
Firefox, WebKit and Chromium.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JBgAhZ6s45DnrKXbhbwYet
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-11T03:45:42.048447Z 90834c4 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@pedrobritx
pedrobritx merged commit 0facd39 into main Nov 11, 2026
10 checks passed
@pedrobritx
pedrobritx deleted the fix/gradient-test-timing branch November 11, 2026 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants