packages/mip/src/util/dom/css.js
function prefixProperty (property) {
  property = property.replace(camelReg, (match, first, char) => (first ? char : char.toUpperCase()))

  if (prefixCache[property]) {
    return prefixCache[property]
  }

  let prop

  if (!(property in supportElement.style)) {
    for (let i = 0; i < PREFIX_TYPE.length; i++) {
      let prefixedProp = PREFIX_TYPE[i] +
        property.charAt(0).toUpperCase() +
        property.slice(1)
      if (prefixedProp in supportElement.style) {
        prop = prefixedProp
        break
      }
    }
  }

  prefixCache[property] = prop || property

  return prefixCache[property]
}
function prefixProperty (property) {
  property = property.replace(camelReg, (match, first, char) => (first ? char : char.toUpperCase()))

  if (prefixCache[property]) {
    return prefixCache[property]
  }

  let prop

  if (!(property in supportElement.style)) {
    for (let i = 0; i < PREFIX_TYPE.length; i++) {
      let prefixedProp = PREFIX_TYPE[i] +
        property.charAt(0).toUpperCase() +
        property.slice(1)
      if (prefixedProp in supportElement.style) {
        prop = prefixedProp
        break
      }
    }
  }

  prefixCache[property] = prop || property

  return prefixCache[property]
}
function prefixProperty ( property ) { property = property . replace ( camelReg , ( match , first , char ) => ( first ? char : char . toUpperCase ( ) ) ) if ( prefixCache [ property ] ) { return prefixCache [ property ] } let prop if ( ! ( property in supportElement . style ) ) { for ( let i = 0 ; i < PREFIX_TYPE . length ; i ++ ) { let prefixedProp = PREFIX_TYPE [ i ] + property . charAt ( 0 ) . toUpperCase ( ) + property . slice ( 1 ) if ( prefixedProp in supportElement . style ) { prop = prefixedProp break } } } prefixCache [ property ] = prop || property return prefixCache [ property ] }
Make sure a property is supported by adding prefix.

@param {string} property A property to be checked
@return {string} the property or its prefixed version
Make sure a property is supported by adding prefix .