See core issue #2362643:
Example inside an svg that is imported in css as data-url:
<path fill="url(#SVGID_1_)" d="M1256.4,386h1500v21h-1500V386z"/>
Notice the "url(#SVGID_1_)". This will be converted to
url(http://domain.com/path/path/#SVGID_1_1)
Resulting in a broke svg.
The previously mentioned issue has been moved around between Advagg and Core about five times and is now resting in Core. There's a patch available which fixes the issue there, but it's not yet fixed in Advagg. If Core has been patched, Advagg's CssOptimizer::updateUrls()
and CssMinifier::loadNestedFile()
methods will still break SVGs.
Comment | File | Size | Author |
---|---|---|---|
#2 | ignore_svg_fill_paths-2905040-2.patch | 1.94 KB | mbrc |
|
Comments
Comment #2
mbrc CreditAttribution: mbrc at Unic commentedHere's a patch which fixes the issue. It has been adapted from the latest Core patch in #2362643.
Comment #5
NickDickinsonWildeThanks for the patch!
Comment #7
W01F CreditAttribution: W01F commentedRelated to https://www.drupal.org/project/advagg/issues/3087226, but this patch no longer applies to ^4.0