-
Notifications
You must be signed in to change notification settings - Fork 345
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
Swiss Invasion #2043
Comments
It couldn't have been #2042 since I've noticed this issue for quite a while, but only recently reported it. I also don't think it was However I dug in a bit more and seem to have found the reason for this. The pixel math checks out for all three flags, so no reason to change the CSS position. However, there is some image interpolation that introduces blur (at least in the browsers/screen resolutions I am using). To demonstrate the issue, I have increased the height of an icon to show both flags: On the left is the default rendering ( This may explain why you didn't see this yourself - I don't know if this blurring occurs on all browsers. So I think these are the solutions I see:
Any thoughts on which solution is preferable? |
That's interesting, nice investigation
Was able to confirm the behavior on firefox on mac but I don't see it on chrome on mac or on either firefox or chrome on windows. I'm not an expert in browser rendering, but the pixelated/crisp edges change looks like it works. But the real issue seems to be not enough buffer in the sprite file? I don't have strong thoughts about this as I'm not an experienced front end developer |
On windows, is it a normal resolution screen? My hypothesis is the blur gets triggered when the image needs to rescale. This would make sense if Mac and mobile retina/2x res, but your windows screen is regular res.
I agree here - who knows what subtle browser changes could trigger this again in the future! Making square flags 28px and 14px should give us at least 2px buffer and make the flags more similar in size to their rectangular counterparts. I noticed there are more square flags in the fantasy(?) section, so I'll try to modify the scripts to add this buffer automatically as well. |
This issue has been marked stale and will be closed soon without further activity. To keep the issue open, please respond to the comment to keep the discussion going. |
While this is still an issue with 16px flags, 32 has been fixed by online-go/world-flags-sprite#4 Given modern screen resolutions, and that downscaling doesnt look too bad, I recommend deprecating the 16px flags altogether and using scaling to achieve "small" and "big" sizes. |
Describe the bug
I'm not sure if the Swiss flag is too high or the LGBT flag is too low, but a thin red line is rendered at the bottom of the LGBT flag.
Two possible fixes:
1) Change the css for the LGBT flag2) Remove the top row of pixels from the Swiss flag
But I sense there is some off-by-one error for the entire world-flags-sprite that only became apparent when square flags were added.
Also note: this issue exists for both 16px and 32px variants.
System info: Firefox, Mac; Firefox, Android (Samsung S10e)
cc: @hobeika @okonomichiyaki
The text was updated successfully, but these errors were encountered: