Skip to content

fix: compare url() values without the server origin (CSSD-1) - #5

Merged
DorskFR merged 2 commits into
mainfrom
strip-origin
Nov 12, 2026
Merged

DorskFR merged 2 commits into
mainfrom
strip-origin

Conversation

@DorskFR

@DorskFR DorskFR commented Nov 12, 2026

Copy link
Copy Markdown
Owner

With `--routes`, `url()` values resolved against each server carried its origin (`http://localhost:3001/...\` vs `http://localhost:3002/...\`), so every background-image and mask-image was reported as a change. On a 105-route Next.js site this was 3035 of 3044 differences.

The configured server origin is now stripped from `url("/` before values are compared; urls to other hosts are left as is.

  • New test `urls_are_compared_without_the_server_origin`: same site on two origins is identical; a real path change is still reported as `url("/assets/b.svg")` → `url("/assets/c.svg")`.
  • Version 0.3.1.

🤖 Generated with Claude Code

DorskFR and others added 2 commits November 13, 2026 08:53
With --routes, url() values resolved against each server carried its
origin, so every background-image and mask-image differed by host.
Strip the configured origin so only the path is compared.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DorskFR
DorskFR merged commit 36c5832 into main Nov 12, 2026
1 check passed
@DorskFR
DorskFR deleted the strip-origin branch November 12, 2026 23:59
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.

1 participant