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

20 lines
379 B
JavaScript
Raw Normal View History

2023-08-17 09:47:40 +00:00
let flexSpec = require('./flex-spec')
let Declaration = require('../declaration')
2022-01-21 08:28:41 +00:00
2023-08-17 09:47:40 +00:00
class FlexWrap extends Declaration {
2022-01-21 08:28:41 +00:00
/**
* Don't add prefix for 2009 spec
*/
2023-08-17 09:47:40 +00:00
set(decl, prefix) {
let spec = flexSpec(prefix)[0]
2022-01-21 08:28:41 +00:00
if (spec !== 2009) {
2023-08-17 09:47:40 +00:00
return super.set(decl, prefix)
2022-01-21 08:28:41 +00:00
}
2023-08-17 09:47:40 +00:00
return undefined
}
}
2022-01-21 08:28:41 +00:00
2023-08-17 09:47:40 +00:00
FlexWrap.names = ['flex-wrap']
2022-01-21 08:28:41 +00:00
2023-08-17 09:47:40 +00:00
module.exports = FlexWrap