TypeSelector Class
A type selector or the universal selector (https://drafts.csswg.org/selectors-4/#type-selectors).
public sealed class TypeSelector : SimpleSelector- Inheritance
SimpleSelectorTypeSelector
Properties
| Name | Description |
|---|---|
| Implicit | Whether the universal selector is implied by a compound selector without type selector when a default namespace is declared (https://drafts.csswg.org/css-namespaces/#prefixes): it restricts the compound selector to the elements of the default namespace, and it is not serialized. |
| IsDefaultNamespace | Whether the namespace is the default namespace (the prefix is then not serialized). |
| IsUniversal | Whether this is the universal selector (*, https://drafts.csswg.org/selectors-4/#the-universal-selector). |
| LocalName | The local name, or null for the universal selector. |
| Namespace | Gets the namespace constraint of the selector. |
| Prefix | The namespace prefix as written ("*" for any namespace, "" for no namespace), or null when there is no prefix. |
| Specificity | Gets the specificity of the selector: (0, 0, 1) for a type selector, (0, 0, 0) for the universal selector. |
Implicit
Selector.csWhether the universal selector is implied by a compound selector without type selector when a default namespace is declared (https://drafts.csswg.org/css-namespaces/#prefixes): it restricts the compound selector to the elements of the default namespace, and it is not serialized.
public bool Implicit { get; }Property value
IsDefaultNamespace
Selector.csIsUniversal
Selector.csLocalName
Selector.csNamespace
Selector.csGets the namespace constraint of the selector.
public NamespaceConstraint Namespace { get; }Property value
Prefix
Selector.csSpecificity
Selector.csGets the specificity of the selector: (0, 0, 1) for a type selector, (0, 0, 0) for the universal selector.
public override Specificity Specificity { get; }