Tests which CSS changes made an element look different.
Give it before/after local URLs and an element’s CSS selector. It tries changed CSS values in Chromium and saves a report with screenshots and source lines. Your files stay untouched.
Node 22 or newer:
npm ci
npx playwright install chromium
npm run demoOpen outputs/demo/index.html. The demo tests a button whose padding changed from 14px 24px to 14px 44px.
npm run build
node dist/cli.js compare --base http://localhost:3000 --head http://localhost:3001 --target ".checkout-button" --out culprit-reportOpen culprit-report/index.html.
Supports CSS value changes on otherwise identical pages. Options and limits · How it works
npm run check
npm test
npm run build