zoltan-dulac / cssSandpaper

a CSS3 Polyfill that implements CSS3 transforms, box-shadow, gradients, opacity and RGBA/HSL/HSLA colours in browser that don't support them.
http://www.useragentman.com/blog/csssandpaper-a-css3-javascript-library/
208 stars 47 forks source link

The pseudo attributes starting with ::-webkit-scrollbar-* cause error #19

Open rmeske opened 10 years ago

rmeske commented 10 years ago

We use the pseudo attributes ::-webkit-scrollbar to stylize the scroll bar and found that this gives an invalid argument in the call to document.querySelectorAll(rule.selector).

We modified the function indexRules so that when the selector is extracted we remove all colons. var selector = (parsedRule[0].trim()).replace(/:/g,'');

Not sure if this has any side effects.