Vixen
02b45cc4
csharp
public readonly record struct StyleRule

One 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 Selector

    Its compiled selector.

  • public DeclarationRange Declarations

    The declarations it applies.

  • public StyleOrigin Origin

    Who it came from.

  • public int Layer

    Its cascade layer, or Unlayered.

  • public int Order

    Its position in source order across every stylesheet loaded.

  • public bool BlocksSharing

    Whether 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