rofrischmann/inline-style-prefix-all

View on GitHub
modules/plugins/flex.js

Summary

Maintainability
A
0 mins
Test Coverage
import camelToDashCase from 'hyphenate-style-name'

const values = { flex: true, 'inline-flex': true }

export default function flex(property, value) {
  if (property === 'display' && values[value]) {
    return {
      display: [ '-webkit-box', '-moz-box', '-ms-' + value + 'box', '-webkit-' + value, value ]
    }
  }
}