RuleUsage

data class RuleUsage(styleSheetId: StyleSheetId, startOffset: Double, endOffset: Double, used: Boolean)

CSS coverage information.

Constructors

RuleUsage
Link copied to clipboard
fun RuleUsage(styleSheetId: StyleSheetId, startOffset: Double, endOffset: Double, used: Boolean)

Properties

endOffset
Link copied to clipboard
val endOffset: Double
Offset of the end of the rule body from the beginning of the stylesheet.
startOffset
Link copied to clipboard
val startOffset: Double
Offset of the start of the rule (including selector) from the beginning of the stylesheet.
styleSheetId
Link copied to clipboard
val styleSheetId: StyleSheetId
The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
used
Link copied to clipboard
val used: Boolean
Indicates whether the rule was actually used by some element in the page.

Sources

jvm source
Link copied to clipboard