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

Undesired hairline on some svgs #101

Open
elrumordelaluz opened this issue Feb 17, 2021 · 1 comment
Open

Undesired hairline on some svgs #101

elrumordelaluz opened this issue Feb 17, 2021 · 1 comment

Comments

@elrumordelaluz
Copy link

Probably due to a subpixel rendering related stuff, some flags renders with a hairline of the path which is placed on the back.

flags_line.mp4

Here is the pen to play around.

As suggested by @aarongarciah a solution could be to use the shapes to fill only the space needed instead of fill the whole background of the svg.

I found a file with something like a list of sources for the flags, but seems that the base to create pngs is the /svgs folder, could help to make PRs to those flags that have the problem described above?

@wyattoday
Copy link
Collaborator

That's a interesting solution, and we'll happily accept pull requests for flags that "fix" this issue.

The real issue, however, is the rendering engines browsers use. Should browsers render things that are under other things? No. Do they? Yes, obviously, because it's easier to just render everything "as is" and scale it.

So, this is a bug in browsers, not in the SVG itself.

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

2 participants