Problem
Currently, changes to CSS can unintentionally introduce visual regressions that are hard to detect during code review. Since styling issues often don’t break functionality, they can slip through unnoticed until later stages or even production.
Proposed Solution
Introduce a visual regression testing setup that allows us to detect unintended UI changes when modifying CSS.
Suggested Approach
- Maintain a collection of representative HTML/CSS examples (components, layouts, edge cases).
- Render these files to images (snapshots) as part of the test process.
- Store baseline images in the repository.
- On each change, re-render and compare new images against the baseline.
- Flag differences beyond a defined threshold.
Additional Notes
Consider CI integration so checks run automatically on PRs.
Problem
Currently, changes to CSS can unintentionally introduce visual regressions that are hard to detect during code review. Since styling issues often don’t break functionality, they can slip through unnoticed until later stages or even production.
Proposed Solution
Introduce a visual regression testing setup that allows us to detect unintended UI changes when modifying CSS.
Suggested Approach
Additional Notes
Consider CI integration so checks run automatically on PRs.