wishthis/node_modules/autoprefixer/lib/hacks/grid-column-align.js

29 lines
513 B
JavaScript
Raw Normal View History

2023-08-17 09:47:40 +00:00
let Declaration = require('../declaration')
2022-01-21 08:28:41 +00:00
2023-08-17 09:47:40 +00:00
class GridColumnAlign extends Declaration {
2022-01-21 08:28:41 +00:00
/**
* Do not prefix flexbox values
*/
2023-08-17 09:47:40 +00:00
check(decl) {
return !decl.value.includes('flex-') && decl.value !== 'baseline'
2022-01-21 08:28:41 +00:00
}
/**
* Change IE property back
*/
2023-08-17 09:47:40 +00:00
normalize() {
return 'justify-self'
}
2022-01-21 08:28:41 +00:00
2023-08-17 09:47:40 +00:00
/**
* Change property name for IE
*/
prefixed(prop, prefix) {
return prefix + 'grid-column-align'
}
}
2022-01-21 08:28:41 +00:00
2023-08-17 09:47:40 +00:00
GridColumnAlign.names = ['grid-column-align']
2022-01-21 08:28:41 +00:00
2023-08-17 09:47:40 +00:00
module.exports = GridColumnAlign