function splitCSSProperties(CSSStringRules) {
  var lastIndex = 0;
  var propertiesSplited = [];
  var style = CSSStringRules.replace(/(;)/g, '; ').replace(/( {2})/g, ' ');
  style.replace(/[:()[\] ,=]/g, function (a, b) {
    var s = style.substring(lastIndex, b);

    if (s) {
      propertiesSplited.push(s);
    }

    propertiesSplited.push(a);
    lastIndex = b + 1;
    return a;
  });
  propertiesSplited.push(style.substring(lastIndex, Infinity));
  return propertiesSplited;
}
/**
 * Splits the CSS properties and their values into a array.
 */
Splits the CSS properties and their values into a array.
Splits the CSS properties and their values into a array .
function splitCSSProperties(CSSStringRules) {
  var lastIndex = 0;
  var propertiesSplited = [];
  var style = CSSStringRules.replace(/(;)/g, '; ').replace(/( {2})/g, ' ');
  style.replace(/[:()[\] ,=]/g, function (a, b) {
    var s = style.substring(lastIndex, b);
    if (s) {
      propertiesSplited.push(s);
    }
    propertiesSplited.push(a);
    lastIndex = b + 1;
    return a;
  });
  propertiesSplited.push(style.substring(lastIndex, Infinity));
  return propertiesSplited;
}
function splitCSSProperties ( CSSStringRules ) { var lastIndex = 0 ; var propertiesSplited = [ ] ; var style = CSSStringRules . replace ( / (;) / g , '; ' ) . replace ( / ( {2}) / g , ' ' ) ; style . replace ( / [:()[\] ,=] / g , function ( a , b ) { var s = style . substring ( lastIndex , b ) ; if ( s ) { propertiesSplited . push ( s ) ; } propertiesSplited . push ( a ) ; lastIndex = b + 1 ; return a ; } ) ; propertiesSplited . push ( style . substring ( lastIndex , Infinity ) ) ; return propertiesSplited ; }
Splits the CSS properties and their values into a array.
Splits the CSS properties and their values into a array .