ClassPrefixSelector Class
- Experimental (WEBPLATEXP0006)
A class prefix selector (https://drafts.csswg.org/selectors-5/#class-prefix, tentative): .foo-* matches the elements with a class that starts with the prefix (an identifier ending with a hyphen), followed by at least one character that is not a hyphen.
[Experimental("WEBPLATEXP0006", UrlFormat = "https://github.com/meziantou/Meziantou.Framework/blob/main/src/Meziantou.Framework.WebPlatform/docs/experimental-apis.md#{0}")]
public sealed class ClassPrefixSelector : SimpleSelector- Inheritance
SimpleSelectorClassPrefixSelector
Properties
| Name | Description |
|---|---|
| Prefix | The prefix, with the escapes resolved (e.g. "foo-" for .foo-*). |
| Specificity | Gets the specificity of the selector, always (0, 1, 0). |
Prefix
Selector.csSpecificity
Selector.csGets the specificity of the selector, always (0, 1, 0).
public override Specificity Specificity { get; }