CompoundSelector Class
A compound selector, with the pseudo-elements and the pseudo-classes that follow them (https://drafts.csswg.org/selectors-4/#compound).
public sealed class CompoundSelectorProperties
| Name | Description |
|---|---|
| HasPseudoElement | Gets a value indicating whether the compound selector contains a pseudo-element. |
| Selectors | The simple selectors, in source order. |
| Specificity | Gets the specificity of the compound selector, the sum of the specificities of its simple selectors. |
HasPseudoElement
Selector.csSelectors
Selector.csThe simple selectors, in source order.
public ImmutableArray<SimpleSelector> Selectors { get; }Property value
Specificity
Selector.csGets the specificity of the compound selector, the sum of the specificities of its simple selectors.
public Specificity Specificity { get; }Property value
Methods
| Name | Description |
|---|---|
| ToString() | Serializes the compound selector (https://drafts.csswg.org/cssom/#serialize-a-selector). |