flex-spec.js 397 B

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