rofrischmann/inline-style-prefixer

View on GitHub
modules/plugins/cursor.js

Summary

Maintainability
A
0 mins
Test Coverage
const prefixes = ['-webkit-', '-moz-', '']

const values = {
  'zoom-in': true,
  'zoom-out': true,
  grab: true,
  grabbing: true,
}

export default function cursor(property, value) {
  if (property === 'cursor' && values.hasOwnProperty(value)) {
    return prefixes.map((prefix) => prefix + value)
  }
}