You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
496 B
29 lines
496 B
3 years ago
|
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
|