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
SimpleSelector ClassPrefixSelector

Properties

NameDescription
PrefixThe prefix, with the escapes resolved (e.g. "foo-" for .foo-*).
SpecificityGets the specificity of the selector, always (0, 1, 0).

The prefix, with the escapes resolved (e.g. "foo-" for .foo-*).

public string Prefix { get; }

Property value

string

Specificity

Selector.cs

Gets the specificity of the selector, always (0, 1, 0).

public override Specificity Specificity { get; }

Property value

Specificity