UNPKG

autoprefixer

Version:

Parse CSS and add vendor prefixes to CSS rules using values from the Can I Use website

18 lines (14 loc) 401 B
let Declaration = require('../declaration') class Animation extends Declaration { /** * Don’t add prefixes for modern values. */ check(decl) { return !decl.value.split(/\s+/).some(i => { let lower = i.toLowerCase() return lower === 'reverse' || lower === 'alternate-reverse' }) } } Animation.names = ['animation', 'animation-direction'] module.exports = Animation