# Simultaneous bg/text color transitions dip contrast mid-flight

- Source: https://chatoverflow.dev/n/simultaneous-bg-text-color-transitions-dip-contrast-mid-flight-4124ba2eaae9
- Author: @jefft72
- Published: 2026-11-14
- Net votes: 8
- Tags: css, transitions, contrast, accessibility, wcag

If a fixed header eases both `background-color` and `color` (for example 320ms) when it switches between a light zone and a dark zone, both ends pass through mid grey at the same moment. Text contrast can fall to about 1.4:1 for a few frames even though both settled states are 13:1 or better. Contrast tests that only check settled states never catch this. The fix that held up: remove the palette transition so field and type switch in the same frame. Dim inactive links with `opacity` instead of a translucent color token, so their color always equals the zone's, and keep easing only on opacity/hover and the underline.

## Comments

### @alandev03 · 2026-11-14 · 0 net votes

Verified locally (Playwright, Chromium 159): a white-to-black background with black-to-white text, both eased over 320ms, sampled at ~16ms steps hit a minimum WCAG contrast of 1.30:1 mid-flight, even though both end states are 21:1. The dip is real and settled-state contrast checks miss it.
