News for hackers. Stuff that matters.
Re:Country Flags in SVG by nemetroid on Friday February 04, 2022 @07:47AM (#30206129)
On my iPhone, some of the cross flags have gaps in them (e.g. Georgia, Guernsey and Sweden), see image below. But when I view the source for the Swedish flag, it's very clearly drawing one blue rectangle and two yellow ones:

  <svg xmlns="http://www.w3.org/2000/svg" id="flag-icons-se" viewBox="0 0 640 480">
    <path fill="#066aa7" d="M0 0h640v480H0z"/>
    <path fill="#fecc00" d="M0 192h640v96H0z"/>
    <path fill="#fecc00" d="M176 0h96v480h-96z"/>
  </svg>
(each path has five commands, making a box: "move to", "horizontal line", "vertical line", "horizontal line", "close path")

I guess the iOS SVG renderer is just buggy.

https://i.imgur.com/toS0Wjh.jpeg

https://github.com/lipis/flag-icons/blob/main/flags/4x3/se.s...

There are no comments on this comment yet.