cleanupGlobalStyle
Expand global styles, removing @font-face, @media and similar rules.
Global CSS rules matching IDs, classes or tags are copied to matching elements as presentation attributes, and classes used only by those rules are removed. Rules used by animations and media queries are left intact. On failure the original SVG is restored.