Closed wesruv closed 5 years ago
Repo for the example, in case it helps: https://github.com/wesruv/svg4everybody-woes
A coworker noticed this:
it seems like with JS enabled, it drops the SVG in, but the linked SVG element's width/height/viewBox gets lost:
<svg xmlns="http://www.w3.org/2000/svg" width="97" height="82.4" viewBox="-479.5 280.8 97 82.4" id="404-bot">
SVG4Everybody:
Manually pasting in SVG:
Finally got SVG's to work with use
and svg4everybody
, I went back and asked the designers to flatten all masks in the files. It appears <mask>
tags weren't working correctly?
Here's a quick code sample: https://wesruv.github.io/svg4everybody-woes/
I want to inline all external SVG's that have
<use>
so they're cacheable and I can style them.The
#404-bot
sprite is waaaay off the displayable area When I choose#bulb-is
it'll create adef > path#ca
but the markup never uses#ca
anywhere When I choose#area-is
it'll create adef > path#ca
but the markup never uses#ba
anywhereHalp?