mirror of
https://github.com/OliveTin/OliveTin
synced 2025-12-18 12:05:32 +00:00
24 lines
533 B
JavaScript
24 lines
533 B
JavaScript
// 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;
|