grid-column-align.js 513 B

12345678910111213141516171819202122232425262728
  1. let Declaration = require('../declaration')
  2. class GridColumnAlign extends Declaration {
  3. /**
  4. * Do not prefix flexbox values
  5. */
  6. check(decl) {
  7. return !decl.value.includes('flex-') && decl.value !== 'baseline'
  8. }
  9. /**
  10. * Change property name for IE
  11. */
  12. prefixed(prop, prefix) {
  13. return prefix + 'grid-column-align'
  14. }
  15. /**
  16. * Change IE property back
  17. */
  18. normalize() {
  19. return 'justify-self'
  20. }
  21. }
  22. GridColumnAlign.names = ['grid-column-align']
  23. module.exports = GridColumnAlign