csharp
public readonly record struct StyleRuleOne rule: a selector, the declarations it applies, and where it sits in the cascade.
No guide page documents this yet — the page shows what the code says about itself.
Fields and properties (6)
public Selector SelectorIts compiled selector.
public DeclarationRange DeclarationsThe declarations it applies.
public StyleOrigin OriginWho it came from.
public int LayerIts cascade layer, or Unlayered.
public int OrderIts position in source order across every stylesheet loaded.
public bool BlocksSharingWhether matching it can depend on something a StyleSharingKey does not carry. See SharingIsSound.
Methods (1)
public StyleRule(Selector Selector, DeclarationRange Declarations, StyleOrigin Origin, int Layer, int Order, bool BlocksSharing)One rule: a selector, the declarations it applies, and where it sits in the cascade.
Used by (3)
- StyleInvalidatorVixen.Ui.Styling
- StyleResolverVixen.Ui.Styling
- StyleRuleSetVixen.Ui.Styling