PseudoElementSelector Class
A pseudo-element (https://drafts.csswg.org/selectors-4/#pseudo-elements). Pseudo-elements are not elements, so a selector containing one never matches an element.
public sealed class PseudoElementSelector : SimpleSelector- Inheritance
SimpleSelectorPseudoElementSelector
Properties
| Name | Description |
|---|---|
| Argument | The compound selector argument of ::slotted(). |
| ArgumentText | The serialized arguments of the functional pseudo-elements other than ::slotted() (e.g. the identifiers of ::part()). |
| IsFunction | Whether the pseudo-element is a function (e.g. ::part()). |
| Name | The name, in ASCII lowercase and without the colons (e.g. "before" or "part"). |
| PartNames | The part names of ::part() (https://drafts.csswg.org/css-shadow-1/#part). |
| Specificity | The specificity of a pseudo-element, except ::highlight(*) whose specificity is zero (https://drafts.csswg.org/css-pseudo-4/#selectordef-highlight). |
Argument
Selector.csArgumentText
Selector.csIsFunction
Selector.csName
Selector.csPartNames
Selector.csThe part names of ::part() (https://drafts.csswg.org/css-shadow-1/#part).
public ImmutableArray<string> PartNames { get; }Property value
Specificity
Selector.csThe specificity of a pseudo-element, except ::highlight(*) whose specificity is zero (https://drafts.csswg.org/css-pseudo-4/#selectordef-highlight).
public override Specificity Specificity { get; }