function parseCssText(cssStr) {
    // Remove the white spaces in the string.
    // Split with ';' and ignore the last one.
    const css = cssStr.replace(/\s/g, '').substring(0, cssStr.length - 1)
        .split(';');
    const cssObj = {};
    for (const cssStyle of css) {
      const propertyAndValue = cssStyle.split(':');
      let value = propertyAndValue[1];
      value = isNaN(value) ? value : Number(value);
      cssObj[propertyAndValue[0]] = value;
    }
    return cssObj;
  }
Transform a cssText to an object.
Example:
cssText: 'background-color: black; color: green; font-size: 10px;'
cssObject: {
  background-color: 'black',
  color: 'green',
  font-size: '10px',
}
@param {string} cssStr
@return {!Object<string, string | number>}