code: private static void  parseStyle(SvgElementBase obj, String style)
     {
        TextScanner  scan = new TextScanner(style.replaceAll("/\\*.*?\\*/", ""));  // regex strips block comments
  
        while (true)
        {
           String  propertyName = scan.nextToken(':');
           scan.skipWhitespace();
           if (!scan.consume(':'))
              break;  // Syntax error. Stop processing CSS rules.
           scan.skipWhitespace();
           String  propertyValue = scan.nextTokenWithWhitespace(';');
           if (propertyValue == null)
              break;  // Syntax error
           scan.skipWhitespace();
           if (scan.empty() || scan.consume(';'))
           {
              if (obj.style == null)
                 obj.style = new Style();
              processStyleProperty(obj.style, propertyName, propertyValue);
              scan.skipWhitespace();
           }
        }
     }
docs: /*
  Parse the 'style' attribute.