wishthis/node_modules/autoprefixer/lib/hacks/flex-spec.js

20 lines
375 B
JavaScript
Raw Normal View History

2022-01-21 08:28:41 +00:00
/**
* Return flexbox spec versions by prefix
*/
module.exports = function (prefix) {
2023-08-17 09:47:40 +00:00
let spec
2022-01-21 08:28:41 +00:00
if (prefix === '-webkit- 2009' || prefix === '-moz-') {
2023-08-17 09:47:40 +00:00
spec = 2009
2022-01-21 08:28:41 +00:00
} else if (prefix === '-ms-') {
2023-08-17 09:47:40 +00:00
spec = 2012
2022-01-21 08:28:41 +00:00
} else if (prefix === '-webkit-') {
2023-08-17 09:47:40 +00:00
spec = 'final'
2022-01-21 08:28:41 +00:00
}
if (prefix === '-webkit- 2009') {
2023-08-17 09:47:40 +00:00
prefix = '-webkit-'
2022-01-21 08:28:41 +00:00
}
2023-08-17 09:47:40 +00:00
return [spec, prefix]
}