Vixen
feb85697
csharp
public readonly record struct Selector

One selector, compiled into something the matcher can run.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

⚠ The pseudo-element is back, and this time it has readers. A field holding the name of a ::before used to be written here and read by nothing, so p::before matched the paragraph and coloured it — doc 43's F6, which deleted the field rather than leave a rule meaning something else. PseudoElement is the field returning with the two readers it never had: StyleResolver skips a pseudo-element rule in an element's own cascade and takes only those in ResolvePseudo, and UiDocument builds the box from what that answers. See doc 43's A12.

Fields and properties (4)

  • public int Start

    Where its compounds begin.

  • public int Count

    How many compounds it has.

  • public Specificity Specificity

    How specific it is.

  • public PseudoElement PseudoElement

    The generated box this selector styles, or None.

Methods (1)

  • public Selector(int Start, int Count, Specificity Specificity)

    One selector, compiled into something the matcher can run.

Used by (17)

  • CombinatorPairTestsVixen.Ui.Styling.Tests
  • PseudoElementCascadeTestsVixen.Ui.Styling.Tests
  • RepositoryScanVixen.Ui.Styling.Tests
  • RuleIndexVixen.Ui.Styling
  • SelectorCompilerVixen.Ui.Styling
  • SelectorMatcherVixen.Ui.Styling
  • SelectorMatchingTestsVixen.Ui.Styling.Tests
  • SelectorQueryVixen.Ui.Testing
  • SelectorSurfaceSweepTestsVixen.Ui.Styling.Tests
  • SelectorTableVixen.Ui.Styling
  • StyleFixtureVixen.Ui.Styling.Tests
  • StyleInvalidatorVixen.Ui.Styling
  • StyleResolverVixen.Ui.Styling
  • StyleRuleVixen.Ui.Styling
  • StyleRuleSetVixen.Ui.Styling
  • StyleSheetLoaderVixen.Ui.Styling
  • WhereSelectorTestsVixen.Ui.Styling.Tests