Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVG Data URI with Compression #41

Open
joeyhoer opened this issue Oct 31, 2012 · 2 comments
Open

SVG Data URI with Compression #41

joeyhoer opened this issue Oct 31, 2012 · 2 comments

Comments

@joeyhoer
Copy link

The test below illustrates an issue compiling SVG data URIs. When compressed (with YUI), the whitespace is collapsed within the markup, and that leads to breakage.

.test {
border-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0,0 24,26"><filter id="dropshadow" height="150%" width="150%"><feGaussianBlur in="SourceAlpha" stdDeviation="2"></feGaussianBlur><feOffset dx="0" dy="1" result="offsetblur"></feOffset><feMerge><feMergeNode></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><polygon fill="hsl(0, 0%, 100%)" filter="url(#dropshadow)" points="12,3 2,13 12,23 22,13"></polygon></svg>') 30.76923% 29.16667% repeat;
border-width: 0 0 8px;
border-style: solid;
background-clip: padding-box;
margin-bottom: -8px;
    position: relative;
}
@kares
Copy link
Collaborator

kares commented Oct 31, 2012

Hey Joey, does this work with less.js than (e.g. in the browser or on node) ?

@joeyhoer
Copy link
Author

I haven't installed Node (or npm) on my system, so I can't confirm if it compiles the same on Node. Less.js in the browser doesn't have a compile option. It's occurs specifically when the code is compressed.

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

No branches or pull requests

2 participants