function inlineStyleRulesString(html) {
  const tree =
      CssSanitizer.safeParseHtmlAndGetInertElement(`<span>${html}</span>`);
  if (tree == null) {
    return '';
  }
  CssSanitizer.inlineStyleRules(tree);
  return tree.innerHTML;
}
Converts rules in STYLE tags into style attributes on the tags they apply to,
and returns a new string.
@param {string} html
@return {string}