{"action":"created","issue":{"url":"https://api.github.com/repos/yui/yuicompressor/issues/141","labels_url":"https://api.github.com/repos/yui/yuicompressor/issues/141/labels{/name}","comments_url":"https://api.github.com/repos/yui/yuicompressor/issues/141/comments","events_url":"https://api.github.com/repos/yui/yuicompressor/issues/141/events","html_url":"https://github.com/yui/yuicompressor/issues/141","id":32674245,"number":141,"title":"Inline SVG XML gets compressed into oblivion","user":{"login":"mcombuechen","id":1739114,"avatar_url":"https://avatars.githubusercontent.com/u/1739114?v=3","gravatar_id":"","url":"https://api.github.com/users/mcombuechen","html_url":"https://github.com/mcombuechen","followers_url":"https://api.github.com/users/mcombuechen/followers","following_url":"https://api.github.com/users/mcombuechen/following{/other_user}","gists_url":"https://api.github.com/users/mcombuechen/gists{/gist_id}","starred_url":"https://api.github.com/users/mcombuechen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcombuechen/subscriptions","organizations_url":"https://api.github.com/users/mcombuechen/orgs","repos_url":"https://api.github.com/users/mcombuechen/repos","events_url":"https://api.github.com/users/mcombuechen/events{/privacy}","received_events_url":"https://api.github.com/users/mcombuechen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"tml","id":35148,"avatar_url":"https://avatars.githubusercontent.com/u/35148?v=3","gravatar_id":"","url":"https://api.github.com/users/tml","html_url":"https://github.com/tml","followers_url":"https://api.github.com/users/tml/followers","following_url":"https://api.github.com/users/tml/following{/other_user}","gists_url":"https://api.github.com/users/tml/gists{/gist_id}","starred_url":"https://api.github.com/users/tml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tml/subscriptions","organizations_url":"https://api.github.com/users/tml/orgs","repos_url":"https://api.github.com/users/tml/repos","events_url":"https://api.github.com/users/tml/events{/privacy}","received_events_url":"https://api.github.com/users/tml/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/yui/yuicompressor/milestones/1","html_url":"https://github.com/yui/yuicompressor/milestones/2.4.9","labels_url":"https://api.github.com/repos/yui/yuicompressor/milestones/1/labels","id":380112,"number":1,"title":"2.4.9","description":null,"creator":{"login":"tml","id":35148,"avatar_url":"https://avatars.githubusercontent.com/u/35148?v=3","gravatar_id":"","url":"https://api.github.com/users/tml","html_url":"https://github.com/tml","followers_url":"https://api.github.com/users/tml/followers","following_url":"https://api.github.com/users/tml/following{/other_user}","gists_url":"https://api.github.com/users/tml/gists{/gist_id}","starred_url":"https://api.github.com/users/tml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tml/subscriptions","organizations_url":"https://api.github.com/users/tml/orgs","repos_url":"https://api.github.com/users/tml/repos","events_url":"https://api.github.com/users/tml/events{/privacy}","received_events_url":"https://api.github.com/users/tml/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":4,"state":"open","created_at":"2013-07-17T02:59:31Z","updated_at":"2015-07-08T13:25:49Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2014-05-02T07:55:29Z","updated_at":"2015-10-15T21:05:44Z","closed_at":null,"body":"I came across a situation where I wanted to save very small and simple SVG images inline in the CSS, e.g. \r\n```css\r\ndiv {\r\n  background-image: url('data:image/svg+xml;utf8,<svg version=\"1.0\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" width=\"200px\" height=\"200px\" viewBox=\"0 0 200 200\" xml:space=\"preserve\"><polygon points=\"200,120 0,120 0,80 200,80 \"/></svg>');\r\n}\r\n```\r\nYUICompressor will strip all the whitespace from the XML and thus break it:\r\n```css\r\ndiv{background-image:url('data:image/svg+xml;utf8,<svgversion=\"1.0\"xmlns=\"http://www.w3.org/2000/svg\"x=\"0px\"y=\"0px\"width=\"200px\"height=\"200px\"viewBox=\"00200200\"xml:space=\"preserve\"><polygonpoints=\"200,1200,1200,80200,80\"/></svg>')}\r\n```\r\nI’d argue that content within `url()` shouldn’t be minified."},"comment":{"url":"https://api.github.com/repos/yui/yuicompressor/issues/comments/148521189","html_url":"https://github.com/yui/yuicompressor/issues/141#issuecomment-148521189","issue_url":"https://api.github.com/repos/yui/yuicompressor/issues/141","id":148521189,"user":{"login":"marcelstoer","id":624195,"avatar_url":"https://avatars.githubusercontent.com/u/624195?v=3","gravatar_id":"","url":"https://api.github.com/users/marcelstoer","html_url":"https://github.com/marcelstoer","followers_url":"https://api.github.com/users/marcelstoer/followers","following_url":"https://api.github.com/users/marcelstoer/following{/other_user}","gists_url":"https://api.github.com/users/marcelstoer/gists{/gist_id}","starred_url":"https://api.github.com/users/marcelstoer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcelstoer/subscriptions","organizations_url":"https://api.github.com/users/marcelstoer/orgs","repos_url":"https://api.github.com/users/marcelstoer/repos","events_url":"https://api.github.com/users/marcelstoer/events{/privacy}","received_events_url":"https://api.github.com/users/marcelstoer/received_events","type":"User","site_admin":false},"created_at":"2015-10-15T21:05:44Z","updated_at":"2015-10-15T21:05:44Z","body":"This is a pretty serious defect. We can't currently us the yuicompressor because of this. The fact that it's been open for 1.5 years and 2.4.9 with which it's supposed to be released is only about 30% completed poses a pretty bleak outlook :disappointed:."}}