SVGKit/SVGKit — pull request #124 by dgileadi (2013-11-19 18:46:12+00:00)
Title: Add support for external CSS stylesheets and marginally improved CSS parsing, "Leave Core DOM Alone" edition

This pull request supports loading external CSS stylesheets by relative path. CSS rule parsing is also improved to support element and ID selectors in addition to class selectors, as well as combinations of selectors.

Note that if an external stylesheet isn't found at a relative path to the original SVG file it is then searched for in the bundle and then in the user's document directory. This allows NSString-sourced SVG to specify an external stylesheet, and also allows apps to write custom stylesheets at runtime which can be loaded by the parser.

SVGKImage is also improved to better support initWithCoder, allowing good behavior when SVGKImages are placed in NIB/XIB files.

This pull request does make one change to a file in Core DOM, CSSStyleSheet.m, to fix a bug where the selector text has its first character chopped off. The old behavior makes sense if you expect your selector to always be a class selector, but completely breaks anything else.