Sha256: af044e5610d5b2244c395c71257680bfcd4b4827ce6a649ec2f4b9937d2820cf

Contents?: true

Size: 272 Bytes

Versions: 24

Compression:

Stored size: 272 Bytes

Contents

'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';
};

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
trusty-cms-6.3.1 node_modules/stylelint/lib/utils/isKeyframeRule.js
trusty-cms-5.0.7 node_modules/stylelint/lib/utils/isKeyframeRule.js
trusty-cms-5.0.6 node_modules/stylelint/lib/utils/isKeyframeRule.js
trusty-cms-5.0.5 node_modules/stylelint/lib/utils/isKeyframeRule.js
trusty-cms-5.0.4 node_modules/stylelint/lib/utils/isKeyframeRule.js
trusty-cms-5.0.3 node_modules/stylelint/lib/utils/isKeyframeRule.js
trusty-cms-5.0.2 node_modules/stylelint/lib/utils/isKeyframeRule.js
trusty-cms-5.0.1 node_modules/stylelint/lib/utils/isKeyframeRule.js
trusty-cms-4.3.5 node_modules/stylelint/lib/utils/isKeyframeRule.js
trusty-cms-5.0.0 node_modules/stylelint/lib/utils/isKeyframeRule.js
trusty-cms-4.3.4 node_modules/stylelint/lib/utils/isKeyframeRule.js
trusty-cms-4.3.3 node_modules/stylelint/lib/utils/isKeyframeRule.js
trusty-cms-4.3.2 node_modules/stylelint/lib/utils/isKeyframeRule.js
trusty-cms-4.3.1 node_modules/stylelint/lib/utils/isKeyframeRule.js
trusty-cms-4.3 node_modules/stylelint/lib/utils/isKeyframeRule.js
trusty-cms-4.2.3 node_modules/stylelint/lib/utils/isKeyframeRule.js
trusty-cms-4.2.2 node_modules/stylelint/lib/utils/isKeyframeRule.js
trusty-cms-4.2.1 node_modules/stylelint/lib/utils/isKeyframeRule.js
trusty-cms-4.2 node_modules/stylelint/lib/utils/isKeyframeRule.js
trusty-cms-4.1.9 node_modules/stylelint/lib/utils/isKeyframeRule.js