14 lines
271 B
JavaScript
Raw Normal View History

2020-05-19 11:43:42 +03:00
'use strict';
/**
* Check if a rule is a keyframe one
*
* @param {import('postcss').Rule} rule
* @returns {boolean}
*/
module.exports = function(rule) {
const parent = rule.parent;
return parent.type === 'atrule' && parent.name.toLowerCase() === 'keyframes';
};