Class StyleSelectorPredicate
An attribute ([data-state="open"]) or structural (:first-child, :nth-child(2n+1)) condition of a compound selector.
public sealed class StyleSelectorPredicate
- Inheritance
-
StyleSelectorPredicate
- Inherited Members
Constructors
StyleSelectorPredicate(string, string, string, int, int)
Creates a predicate of the given kind with its name, value and An+B coefficients.
public StyleSelectorPredicate(string kind, string name, string value, int a, int b)
Parameters
Properties
A
The A coefficient of an An+B expression.
public int A { get; }
Property Value
B
The B coefficient of an An+B expression.
public int B { get; }
Property Value
Kind
One of attribute, first-child, last-child, only-child, empty, nth-child.
public string Kind { get; }
Property Value
Name
Attribute name for an attribute predicate.
public string Name { get; }
Property Value
Value
Expected attribute value, if any.
public string Value { get; }