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.

17 lines
401 B

3 months ago
  1. let Declaration = require('../declaration')
  2. class Animation extends Declaration {
  3. /**
  4. * Dont add prefixes for modern values.
  5. */
  6. check(decl) {
  7. return !decl.value.split(/\s+/).some(i => {
  8. let lower = i.toLowerCase()
  9. return lower === 'reverse' || lower === 'alternate-reverse'
  10. })
  11. }
  12. }
  13. Animation.names = ['animation', 'animation-direction']
  14. module.exports = Animation