const Declaration = require('../declaration');

class GridColumnAlign extends Declaration {

    static names = ['grid-column-align'];

    /**
     * Do not prefix flexbox values
     */
    check(decl) {
        return decl.value.indexOf('flex-') === -1 && decl.value !== 'baseline';
    }

    /**
     * Change property name for IE
     */
    prefixed(prop, prefix) {
        return prefix + 'grid-column-align';
    }

    /**
     * Change IE property back
     */
    normalize() {
        return 'justify-self';
    }

}

module.exports = GridColumnAlign;
