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.)
I don't know whether SVG can handle that, but you can get JavaScript to display it correctly in any aspect ratio, of course.