flex-spec.js 375 B

12345678910111213141516171819
  1. /**
  2. * Return flexbox spec versions by prefix
  3. */
  4. module.exports = function (prefix) {
  5. let spec
  6. if (prefix === '-webkit- 2009' || prefix === '-moz-') {
  7. spec = 2009
  8. } else if (prefix === '-ms-') {
  9. spec = 2012
  10. } else if (prefix === '-webkit-') {
  11. spec = 'final'
  12. }
  13. if (prefix === '-webkit- 2009') {
  14. prefix = '-webkit-'
  15. }
  16. return [spec, prefix]
  17. }