Skip to content

Bug when inline dataURL exists #55

@kl23

Description

@kl23

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions