Class RuleUsage
CSS coverage information.
public sealed record RuleUsage : IEquatable<RuleUsage>
- Inheritance
-
RuleUsage
- Implements
- Inherited Members
Constructors
RuleUsage(StyleSheetId, double, double, bool)
CSS coverage information.
public RuleUsage(StyleSheetId StyleSheetId, double StartOffset, double EndOffset, bool Used)
Parameters
StyleSheetIdStyleSheetIdThe css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
StartOffsetdoubleOffset of the start of the rule (including selector) from the beginning of the stylesheet.
EndOffsetdoubleOffset of the end of the rule body from the beginning of the stylesheet.
UsedboolIndicates whether the rule was actually used by some element in the page.
Properties
EndOffset
Offset of the end of the rule body from the beginning of the stylesheet.
public double EndOffset { get; init; }
Property Value
StartOffset
Offset of the start of the rule (including selector) from the beginning of the stylesheet.
public double StartOffset { get; init; }
Property Value
StyleSheetId
The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
public StyleSheetId StyleSheetId { get; init; }
Property Value
Used
Indicates whether the rule was actually used by some element in the page.
public bool Used { get; init; }