News for hackers. Stuff that matters.
Re:Country Flags in SVG by bloak on Friday February 04, 2022 @06:56AM (#30205671)
And a fun thing about the UK flag is that you are allowed to make it in different aspect ratios, but you can't just naively scale it: https://en.wikipedia.org/wiki/Union_Jack#Specification

I don't know whether SVG can handle that, but you can get JavaScript to display it correctly in any aspect ratio, of course.

Re:Country Flags in SVG by chrismorgan on Friday February 04, 2022 @09:25AM (#30207079)
https://temp.chrismorgan.info/2022-02-05-union-jack.svg

It depends on calc(), vw and vh units, so it’ll work in browsers but not elsewhere.

(Certainly not all flags with similar specifications will be achievable; this one’s diagonals just happened to be all neatly anchored in the corners, though the red diagonal St Patrick’s cross is fiddly, requiring masking to achieve the required stroke alignment, for which see also https://svgwg.org/specs/strokes/#SpecifyingStrokeAlignment, which is an incomplete draft, and unimplemented.)