]> git.draconx.ca Git - homepage.git/commitdiff
Embed SVG icons directly into output.
authorNick Bowler <nbowler@draconx.ca>
Tue, 23 Feb 2021 01:29:38 +0000 (20:29 -0500)
committerNick Bowler <nbowler@draconx.ca>
Wed, 24 Feb 2021 03:48:54 +0000 (22:48 -0500)
Inlining SVGs directly in the markup seems to interoperate somewhat
better than linking SVGs in img elements, and we can fairly easily
create fallback markup that degrades to a raster image.

Currently this is only applicable to the file listings because the
fallback markup is hardcoded to the icons on these pages.  This will
need to be expanded in the future.

The results seem pretty good, although nothing I do in old Mozilla
versions seems to be able to get the stylesheet sizes to properly
apply to SVG elements, so the icons are rendered correctly but at
the wrong scale.  SVG support can be disabled in this browser and
the fallback works properly.  More work may be required.


No differences found