3 ms·
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/w
by bloak 5y ago
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 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.
- chrismorgan 5y agohttps://temp.chrismorgan.info/2022-02-05-union-jack.svg 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 https://svgwg.org/specs/strokes/#SpecifyingStrokeAlignment, which is an incomplete draft, and unimplemented.)