Skip to content

fix(chart): show cropped photos on the chart in Firefox - #36

Merged
device25 merged 1 commit into
mainfrom
fix/chart-photo-crop-firefox
Oct 25, 2026
Merged

device25 merged 1 commit into
mainfrom
fix/chart-photo-crop-firefox

Conversation

@device25

Copy link
Copy Markdown
Owner

In Firefox a person whose photo has a CROP away from the image's top left corner showed only initials on the chart, while the card showed the photo.

Cause: the round mask was a CSS `clip-path: circle(50%)` on the nested `` frame. Firefox lays the shape out in the frame's view box coordinates, so with a view box like `192 152 136 176` the circle missed the visible region and clipped everything. Chromium was not affected.

Fix: the circle is an SVG `` (one id per portrait) on a group around the frame. Checked by hand in Firefox on a page with both versions: the old one is empty, the new one shows the face. The photos e2e test now checks the structure.

🤖 Generated with Claude Code

Firefox lays a CSS clip-path shape out inside the frame's view box, so a
CROP away from the image's top left corner clipped the whole portrait
away and only the initials showed. The circle is now an SVG clipPath on
a group around the frame.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@device25
device25 merged commit bd59106 into main Oct 25, 2026
1 check passed
@device25
device25 deleted the fix/chart-photo-crop-firefox branch October 25, 2026 19:00
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