| 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 | |
| 14 | if (prefix === '-webkit- 2009') { |
| 15 | prefix = '-webkit-' |
| 16 | } |
| 17 | |
| 18 | return [spec, prefix] |
| 19 | } |