mirror of
https://gh.wpcy.net/https://github.com/djav1985/v-wordpress-plugin-updater.git
synced 2026-04-28 08:02:16 +08:00
23 lines
533 B
JavaScript
23 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;
|