keithclark / selectivizr

selectivizr is a JavaScript utility that emulates CSS3 pseudo-classes and attribute selectors in Internet Explorer 6-8.
1.71k stars 247 forks source link

urls in css for cursor get extra space after closing bracket #19

Open nirvanka opened 13 years ago

nirvanka commented 13 years ago

In order to get custom cursors working in all browsers you need to specify extra non-URL fallback (for FF 3.6). But for IE to be able to interpret that there can't be any extra space after url closing bracket. Selectivizr is adding that space and therefore braking custom cursors. This happens in line 451 of the development version. There should be extra case for urls that have comma after them (eg. cursor). Example:

.my_cursor {
  cursor: url(...), -moz-zoom-in;
}
.my_cursor {
  cursor: url(...) , -moz-zoom-in;
}
keithclark commented 13 years ago

Thanks for the feedback, I'll create a test an look into this.