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
CssGroupingRuleCssMixinRule
Properties
| Name | Description |
|---|---|
| Contents | Whether the mixin accepts a contents block: its body contains a @contents rule. |
| Name | Gets the name of the mixin, including the leading --. |
Contents
CssMixinRules.csWhether the mixin accepts a contents block: its body contains a @contents rule.
public bool Contents { get; }Name
CssMixinRules.csGets the name of the mixin, including the leading --.
public string Name { get; }Methods
| Name | Description |
|---|---|
| GetParameters() | Returns the parameters of the mixin. |
GetParameters()
CssMixinRules.csReturns the parameters of the mixin.
public IReadOnlyList<CssFunctionParameter> GetParameters()