Skip to content
This repository has been archived by the owner on Jun 9, 2020. It is now read-only.

Space incorrectly removed when using svg gaussian blur filter #11

Open
ltressens opened this issue Mar 25, 2013 · 3 comments
Open

Space incorrectly removed when using svg gaussian blur filter #11

ltressens opened this issue Mar 25, 2013 · 3 comments

Comments

@ltressens
Copy link

This expression (css blur for Firefox) :

.blur
{
  filter: url('data:image/svg+xml;utf8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><filter id="gaussian_blur"><feGaussianBlur in="SourceGraphic" stdDeviation="4" /></filter></defs></svg>#gaussian_blur');
}

Is minified like this :

.blur{filter:url("data:image/svg+xml;utf8,<svgversion=\"1.1\"xmlns=\"http://www.w3.org/2000/svg\"xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs><filterid=\"gaussian_blur\"><feGaussianBlurin=\"SourceGraphic\"stdDeviation=\"4\"/></filter></defs></svg>#gaussian_blur")}

Spaces are removed where they should not : "svg version", "filter id", etc...

@akaihola
Copy link

akaihola commented Apr 5, 2013

Work-around: Replace spaces with %20. Firefox happy, minifier doesn't touch. Don't know about other browsers.

@marcelstoer
Copy link

I believe that is inherited from YUI Compressor: yui/yuicompressor#141.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants