Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detailed flags have rendering issues at certain sizes #1326

Open
a-corsini opened this issue Jan 21, 2025 · 3 comments
Open

Detailed flags have rendering issues at certain sizes #1326

a-corsini opened this issue Jan 21, 2025 · 3 comments

Comments

@a-corsini
Copy link

Hi, I would like to point out that when displaying some flags at a reduced size, they can appear distorted, I believe due to the way the strokes are rendered. Do you have any ideas on how this problem could be tackled?

I created a minimal example with some of the flags concerned. Strangely, some extremely detailed flags look fine even when they are very small, while others don't.
https://codepen.io/rs1-project/pen/qEWMLEL

Here is a screenshot from the linked CodePen, where you can see that the flags of Spain, Portugal and Malta are rendered incorrectly at certain sizes, while other detailed flags are fine.
Image

@lipis
Copy link
Owner

lipis commented Jan 21, 2025

Not sure what else can we do about it.. it's up the render engine I guess..

@lipis lipis closed this as completed Jan 21, 2025
@lipis lipis reopened this Jan 21, 2025
@markvantilburg
Copy link
Contributor

Which browser/os are you using? I'm not seeing this with Edge/Chrome/Firefox on Windows 11. It might even be a GPU driver.

Image

@a-corsini
Copy link
Author

I'm using Safari on macOS Sequoia 15.0.
I've just tested the CodePen on Chrome and Firefox and couldn't reproduce the issue, so this might just be one of the many glitches in Safari's SVG rendering engine.

For future reference, I noticed that as long as the font-size is not a multiple of 12 (or maybe 4, I'm not sure), the glitch doesn't occur (eg: 12px → 13px). So play with the font-size and you should be able to solve the issue.

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

No branches or pull requests

3 participants