ComplexSelector Class
A complex (or relative) selector (https://drafts.csswg.org/selectors-4/#complex).
public sealed class ComplexSelectorProperties
| Name | Description |
|---|---|
| Combinators | The combinators; Combinators[i] is between Compounds[i] and Compounds[i + 1]. |
| Compounds | The compound selectors, left to right. |
| HasPseudoElement | Whether the selector contains a pseudo-element (it then never matches an element). |
| RelativeCombinator | The leading combinator of a relative selector (https://drafts.csswg.org/selectors-4/#relative-selector), or null. |
| Specificity | The specificity (computed on demand: the specificity of the nesting selector depends on its parent rule). |
Combinators
Selector.csThe combinators; Combinators[i] is between Compounds[i] and Compounds[i + 1].
public ImmutableArray<Combinator> Combinators { get; }Property value
Compounds
Selector.csThe compound selectors, left to right.
public ImmutableArray<CompoundSelector> Compounds { get; }Property value
HasPseudoElement
Selector.csRelativeCombinator
Selector.csThe leading combinator of a relative selector (https://drafts.csswg.org/selectors-4/#relative-selector), or null.
public Combinator? RelativeCombinator { get; }Property value
Specificity
Selector.csThe specificity (computed on demand: the specificity of the nesting selector depends on its parent rule).
public Specificity Specificity { get; }Property value
Methods
| Name | Description |
|---|---|
| ToString() | Serializes the selector (https://drafts.csswg.org/cssom/#serialize-a-selector). |