parseSVGStyle

external fun parseSVGStyle(svg: SVG, callback: (dynamic) -> dynamic)

Parse CSS in an SVG. Return undefined from the callback to remove a rule.

The callback is invoked for inline style attributes (type "inline"), rules in <style> elements (type "global"), other at-rules (type "at-rule") and keyframes (type "keyframes"). Return a new string to change the value, or undefined to delete the rule. Asynchronous callbacks are not supported.