| // NOTICE: This file is generated by Rollup. To modify it, |
| // please instead edit the ESM counterpart and rebuild with Rollup (npm run build). |
| 'use strict'; |
| |
| const typeGuards = require('./typeGuards.cjs'); |
| |
| /** |
| * Check if a rule is a keyframe one |
| * |
| * @param {import('postcss').Rule} rule |
| * @returns {boolean} |
| */ |
| function isKeyframeRule(rule) { |
| const parent = rule.parent; |
| |
| if (!parent) { |
| return false; |
| } |
| |
| return typeGuards.isAtRule(parent) && parent.name.toLowerCase() === 'keyframes'; |
| } |
| |
| module.exports = isKeyframeRule; |