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 GridRowAlign 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 'align-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-row-align'
|
|
|
|
}
|
|
|
|
}
|
2022-01-21 08:28:41 +00:00
|
|
|
|
2023-08-17 09:47:40 +00:00
|
|
|
GridRowAlign.names = ['grid-row-align']
|
2022-01-21 08:28:41 +00:00
|
|
|
|
2023-08-17 09:47:40 +00:00
|
|
|
module.exports = GridRowAlign
|