Sublime-CSS-Format icon indicating copy to clipboard operation
Sublime-CSS-Format copied to clipboard

Bug when inline dataURL exists

Open kl23 opened this issue 6 years ago • 1 comments

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

kl23 avatar Jul 21 '18 12:07 kl23

one year later, the problem still exists

pilotak avatar Jul 13 '19 09:07 pilotak