grid-row-align.js 496 B

12345678910111213141516171819202122232425262728
  1. let Declaration = require('../declaration')
  2. class GridRowAlign 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-row-align'
  14. }
  15. /**
  16. * Change IE property back
  17. */
  18. normalize() {
  19. return 'align-self'
  20. }
  21. }
  22. GridRowAlign.names = ['grid-row-align']
  23. module.exports = GridRowAlign