src/render/vue/modules/dom.js
function (key, styles) {
    key = camelToKebab(key)
    let stylesText = ''
    for (const k in styles) {
      if (styles.hasOwnProperty(k)) {
        stylesText += camelToKebab(k) + ':' + styles[k] + ';'
      }
    }
    const styleText = `@${key}{${stylesText}}`
    appendCss(styleText, 'dom-added-rules')
  }
function (key, styles) {
    key = camelToKebab(key)
    let stylesText = ''
    for (const k in styles) {
      if (styles.hasOwnProperty(k)) {
        stylesText += camelToKebab(k) + ':' + styles[k] + ';'
      }
    }
    const styleText = `@${key}{${stylesText}}`
    appendCss(styleText, 'dom-added-rules')
  }
function ( key , styles ) { key = camelToKebab ( key ) let stylesText = '' for ( const k in styles ) { if ( styles . hasOwnProperty ( k ) ) { stylesText += camelToKebab ( k ) + ':' + styles [ k ] + ';' } } const styleText = ` ${ key } ${ stylesText } ` appendCss ( styleText , 'dom-added-rules' ) }
for adding fontFace
@param {string} key fontFace
@param {object} styles rules
for adding fontFace