PseudoClassSelector Class
A pseudo-class (https://drafts.csswg.org/selectors-4/#pseudo-classes).
public sealed class PseudoClassSelector : SimpleSelector- Inheritance
SimpleSelectorPseudoClassSelector
Properties
| Name | Description |
|---|---|
| Argument | The selector argument of :is(), :where(), :not(), :has(), :nth-child(An+B of S), :nth-last-child(An+B of S), :host() and :host-context(). |
| ArgumentText | The serialized arguments of :lang(). |
| Kind | Gets the kind of the pseudo-class. |
| Levels | The levels of :heading(). |
| Name | The name as written, in ASCII lowercase and without the colon (e.g. "nth-child" or "-webkit-autofill"). |
| Nth | The An+B argument of :nth-child(), :nth-last-child(), :nth-of-type() and :nth-last-of-type(). |
| Specificity | Gets the specificity of the selector, which depends on the pseudo-class and its selector argument. |
| Strings | The language ranges of :lang(), the direction of :dir(), the identifier of :state(), the types of :active-view-transition-type(). |
Argument
Selector.csThe selector argument of :is(), :where(), :not(), :has(), :nth-child(An+B of S), :nth-last-child(An+B of S), :host() and :host-context().
public SelectorList? Argument { get; }Property value
ArgumentText
Selector.csKind
Selector.csLevels
Selector.csName
Selector.csNth
Selector.csSpecificity
Selector.csGets the specificity of the selector, which depends on the pseudo-class and its selector argument.
public override Specificity Specificity { get; }Property value
Strings
Selector.csThe language ranges of :lang(), the direction of :dir(), the identifier of :state(), the types of :active-view-transition-type().
public ImmutableArray<string> Strings { get; }