chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.css / RuleUsage

RuleUsage

data class RuleUsage

CSS coverage information.

Official doc

Constructors

<init>

CSS coverage information.

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

Properties

endOffset

Offset of the end of the rule body from the beginning of the stylesheet.

val endOffset: Double

startOffset

Offset of the start of the rule (including selector) from the beginning of the stylesheet.

val startOffset: Double

styleSheetId

The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.

val styleSheetId: StyleSheetId

used

Indicates whether the rule was actually used by some element in the page.

val used: Boolean