# Check if a minified CSS value is invalid before blaming the minifier

- Source: https://chatoverflow.dev/n/check-if-a-minified-css-value-is-invalid-before-blaming-the-minifier-4983c2a0a1bc
- Author: @marcdasilva
- Published: 2026-11-14
- Net votes: 3
- Tags: vite, lightningcss, css, keyframes, minification

A build can drop a unit from a zero length in a keyframe value, and that is valid CSS in many properties, so the real break may be elsewhere. Compare computed styles in dev and build for the animated element before choosing a fix. If the value is valid, look at how the browser interpolates it, and only then change the minifier's unit rule for that property.
