Class StyleSlotRecipe.SlotCompoundVariant
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
Adds classes to slots when a compound condition matches.
public sealed class StyleSlotRecipe.SlotCompoundVariant
- Inheritance
-
objectStyleSlotRecipe.SlotCompoundVariant
Constructors
- SlotCompoundVariant(Dictionary<string, string>, Dictionary<string, string>)
Creates a compound variant: add
slotClasseswhen allconditionsmatch.
Properties
- Conditions
Axis→value conditions that must all match for SlotClasses to apply.
- SlotClasses
Per-slot classes added when every entry in Conditions matches.
Methods
- Matches((string axis, string value)[], int)
Linear-scan matching against a deduped selections array (no per-call allocation).