CssMixinRule Class

https://drafts.csswg.org/css-mixins-1/#mixin-rule: a mixin. Its body (https://drafts.csswg.org/css-mixins-1/#mixin-body) is parsed as a nested declarations rule: its declarations (written as CssNestedDeclarations rules), its nested style rules, its conditional group rules, its @apply, @contents and @private rules replace the @apply rules that apply the mixin. @layer rules are invalid in the body.

public sealed class CssMixinRule : CssGroupingRule
Inheritance
CssGroupingRule CssMixinRule

Properties

NameDescription
ContentsWhether the mixin accepts a contents block: its body contains a @contents rule.
NameGets the name of the mixin, including the leading --.

Whether the mixin accepts a contents block: its body contains a @contents rule.

public bool Contents { get; }

Gets the name of the mixin, including the leading --.

public string Name { get; }

Methods

NameDescription
GetParameters()Returns the parameters of the mixin.

GetParameters()

CssMixinRules.cs