source: node_modules/autoprefixer/lib/hacks/animation.js@ 2058e5c

Last change on this file since 2058e5c was 2058e5c, checked in by istevanoska <ilinastevanoska@…>, 6 months ago

Working / before login

  • Property mode set to 100644
File size: 401 bytes
Line 
1let Declaration = require('../declaration')
2
3class Animation extends Declaration {
4 /**
5 * Don’t add prefixes for modern values.
6 */
7 check(decl) {
8 return !decl.value.split(/\s+/).some(i => {
9 let lower = i.toLowerCase()
10 return lower === 'reverse' || lower === 'alternate-reverse'
11 })
12 }
13}
14
15Animation.names = ['animation', 'animation-direction']
16
17module.exports = Animation
Note: See TracBrowser for help on using the repository browser.