my-idlers/node_modules/autoprefixer/lib/hacks/grid-row-align.js
cp6 fd22b0bf58 V2 (Laravel re-make)
V2 (Laravel re-make)
2022-03-06 02:02:12 +11:00

29 lines
499 B
JavaScript
Vendored

let Declaration = require('../declaration')
class GridRowAlign extends Declaration {
/**
* Do not prefix flexbox values
*/
check (decl) {
return !decl.value.includes('flex-') && decl.value !== 'baseline'
}
/**
* Change property name for IE
*/
prefixed (prop, prefix) {
return prefix + 'grid-row-align'
}
/**
* Change IE property back
*/
normalize () {
return 'align-self'
}
}
GridRowAlign.names = ['grid-row-align']
module.exports = GridRowAlign