2023-08-17 09:47:40 +00:00
|
|
|
|
let Declaration = require('../declaration')
|
2022-01-21 08:28:41 +00:00
|
|
|
|
|
2023-08-17 09:47:40 +00:00
|
|
|
|
class Animation extends Declaration {
|
2022-01-21 08:28:41 +00:00
|
|
|
|
/**
|
|
|
|
|
* Don’t add prefixes for modern values.
|
|
|
|
|
*/
|
2023-08-17 09:47:40 +00:00
|
|
|
|
check(decl) {
|
|
|
|
|
return !decl.value.split(/\s+/).some(i => {
|
|
|
|
|
let lower = i.toLowerCase()
|
|
|
|
|
return lower === 'reverse' || lower === 'alternate-reverse'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-01-21 08:28:41 +00:00
|
|
|
|
|
2023-08-17 09:47:40 +00:00
|
|
|
|
Animation.names = ['animation', 'animation-direction']
|
2022-01-21 08:28:41 +00:00
|
|
|
|
|
2023-08-17 09:47:40 +00:00
|
|
|
|
module.exports = Animation
|