You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
397 B

4 years ago
  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. };