Skip to content

Fix: Preserve inline data URLs in proxied CSS - #776

Merged
axllent merged 1 commit into
axllent:developfrom
dalexhu:fix/screenshot-proxy-inline-data
Nov 17, 2026
Merged

axllent merged 1 commit into
axllent:developfrom
dalexhu:fix/screenshot-proxy-inline-data

Conversation

@dalexhu

@dalexhu dalexhu commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

The screenshot proxy's CSS rewriter strips the surrounding url(...) from inline data URLs. This leaves invalid declarations for embedded images and fonts.

Keep the entire original CSS token for data URLs, including its quotes and scheme casing. The regression test covers both an inline background image and an inline font.

go test ./server/handlers passed.

@axllent
axllent merged commit 9459054 into axllent:develop Nov 17, 2026
8 checks passed
@dalexhu
dalexhu deleted the fix/screenshot-proxy-inline-data branch November 17, 2026 03:45
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.

2 participants