mutian / Sublime-CSS-Format

CSS Formatting for Sublime Text
http://mutian.github.io/Sublime-CSS-Format/
MIT License
98 stars 27 forks source link

Bug when inline dataURL exists #55

Open kl23 opened 6 years ago

kl23 commented 6 years ago

hi there,

when I compress CSS with some inline SVG, such as:

.a{background:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg"</svg>');}
.b:before {content: "/\00a0";}

it returns the following

.a{background:url('data:image/svg+xml;charset=utf-8,<svg xmlns=!string!</svg>')}.b:before{content:"http://www.w3.org/2000/svg"}

the content is somehow wrong. 1) xmlns=!string! should be xmlns="http://www.w3.org/2000/svg" 2) content:"http://www.w3.org/2000/svg" should be content: "/\00a0"

any idea? thanks

pilotak commented 5 years ago

one year later, the problem still exists