CssMixinRule Class
https://drafts.csswg.org/css-mixins-1/#mixin-rule: a mixin. Its body contains the local variables of the mixin (the custom properties, written as CssNestedDeclarations rules), the @result rules, whose contents replace the @apply rules that apply the mixin, and the conditional group rules (@media, @supports, @container) that contain them.
public sealed class CssMixinRule : CssGroupingRuleRemarks
The body of a mixin is experimental: the web-platform-tests (and the browsers) wrap the declarations and the rules that are applied in a @result rule, which the specification no longer defines.
See also
- 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()