Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

IE9 background SVG replacement #7

Open
shousper opened this Issue · 5 comments

3 participants

@shousper

Hi Ivan,

Love your work!

Just wanted to ask if there were any plans or reasons against adding support for an inline SVG for gradient backgrounds in IE9?

The ColorZilla gradient generator creates one for you when IE9 support is ticked..

I wouldn't imagine it'd increase the size of cssFx much?

Thanks!

@DASPRiD

I'd like to see this as well.

@imsky
Owner

The traditional gradient fallback for IE6-8 will be included in the near future. The SVG converter can be as large as 1 KB compressed, so if it can be reduced to around 500B, it'll be included.

@shousper

Fair call.

I had a look for a couple more sources.. This one from Microsoft is ~40k of code but its quite complete. It also has an SVG loading method and support for a lot of gradient types I myself never even use. So it could possibly be cut down..

This other one, is extremely basic and simple.

The other size problem is of course the base64 encoder, which would only be used for this and thus hard to justify adding.

Slightly off topic.. Have you considered adding a basic plugin system? Like a rules collection we can extend with our own CSS filters/processors if we'd like? I think this could have potential. You could alternately make cssFx into a modular library with a build script, and then the community could start building and contributing useful filters?

To be frank though, your level of understanding on this projects' topics are way over my own.

@imsky
Owner

Plug-ins can work. There are some fundamental features that need to be finalized, and then all the nice-to-haves will be added.

@shousper

Sounds good to me. Maybe someday soon I'll find the courage to contribute =P

Thanks for your time Ivan, appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.