Style sheet parsin

New style sheet parsing.
To be evaluated.
Need a solution for ie8 and older.
Ie9 ie10 works fine.

Need help even for addSvgTransform not working on ie9 ( not related to this PR and already in the trunk :( )

Visual effect:

![image](https://cloud.githubusercontent.com/assets/1194048/3643669/36dffc74-10d7-11e4-8195-ac7b65f2565e.png)

gonna polish it later :) doesitreallymatch was in opposition to the fast
match i was doing before. then to cut code we went on exaustive check. so
better name is indeed needed.
Il 21/lug/2014 19:14 "Juriy Zaytsev" <notifications@github.com> ha scritto:

> In src/parser.js:
>
> > +    firstMatching = selectorMatch(element, word);
> > +    if (firstMatching && words.length) {
> > +      // still something to do with parents
> > +      parentMatching = doesSomeParentMatch(element, words);
> > +    }
> > +    return firstMatching && parentMatching && (words.length === 0);
> > +  }
> > +
> > +  function doesSomeParentMatch(element, words) {
> > +    var word, parentMatching = true;
> > +    while (element.parentNode && element.parentNode.nodeType === 1 && words.length) {
> > +      if (parentMatching) word = words.pop();
> > +      element = element.parentNode;
> > +      parentMatching = selectorMatch(element, word);
> > +    }
> > +    return (words.length === 0);
>
> No need for parens here :)
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/kangax/fabric.js/pull/1514/files#r15181650>.
>