mirror of
https://github.com/lipis/flag-icons.git
synced 2026-04-26 01:15:55 +03:00
[PR #1096] [MERGED] Fixing blurry us flag in Safari #1204
Labels
No labels
3rd-party
3rd-party
bug
code
documentation
enhancement
fixed-in-master
flag-request
help needed
missing-flag
missing-flag
pull-request
wrong-flag
wrong-flag
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/flag-icons#1204
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/lipis/flag-icons/pull/1096
Author: @gucr
Created: 3/27/2023
Status: ✅ Merged
Merged: 3/28/2023
Merged by: @NotTsunami
Base:
main← Head:fix-us-safari📝 Commits (2)
74aea1dFixing blurry us flag when zooming on a flag in Safari (iOS & Mac OS).f4001e2Removing usage of to make flag editable in Illustrator & Inkscape📊 Changes
2 files changed (+17 additions, -27 deletions)
View changed files
📝
flags/1x1/us.svg(+8 -13)📝
flags/4x3/us.svg(+9 -14)📄 Description
Fixing a corner case about the US flag in Safari (reproduced in iOS & Mac OS).
When the flag is set to a small size (let's say 20px) and the user zooms in, Safari is not able to render SVG properly. What appens is that the browser creates a raster of the pattern at paint time which is not updated whenever the user zooms.
This new version takes advantage of the marker SVG element which is has a complete cross browser support and fixes the bug above.
See #1088
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.