MCPcopy
hub / github.com/webpack/webpack / isPureBodyAtRule

Function isPureBodyAtRule

lib/css/CssParser.js:574–578  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

572 * @returns {boolean} true for `@keyframes` / `@counter-style` / `@container` / `@scope`
573 */
574const isPureBodyAtRule = (name) =>
575 OPTIONALLY_VENDOR_PREFIXED_KEYFRAMES_AT_RULE.test(name) ||
576 name === "@counter-style" ||
577 name === "@container" ||
578 name === "@scope";
579
580/**
581 * Scan a rule body once: does it hold a direct declaration counted against the enclosing rule (a declaration, or one in a transparent conditional-group at-rule like `@media`/`@supports`/…) and does it hold a nested block (qualified rule or any block-bearing at-rule)?

Callers 2

scanRuleBodyFunction · 0.85
parseMethod · 0.85

Calls 1

testMethod · 0.45

Tested by

no test coverage detected