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

CSSMedia

data class CSSMedia

CSS media rule descriptor.

Official doc

Constructors

<init>

CSS media rule descriptor.

CSSMedia(text: String, source: String, sourceURL: String? = null, range: SourceRange? = null, styleSheetId: StyleSheetId? = null, mediaList: List<MediaQuery>? = null)

Properties

mediaList

Array of media queries.

val mediaList: List<MediaQuery>?

range

The associated rule (@media or @import) header range in the enclosing stylesheet (if available).

val range: SourceRange?

source

Source of the media query: "mediaRule" if specified by a @media rule, "importRule" if specified by an @import rule, "linkedSheet" if specified by a "media" attribute in a linked stylesheet's LINK tag, "inlineSheet" if specified by a "media" attribute in an inline stylesheet's STYLE tag.

val source: String

sourceURL

URL of the document containing the media query description.

val sourceURL: String?

styleSheetId

Identifier of the stylesheet containing this object (if exists).

val styleSheetId: StyleSheetId?

text

Media query text.

val text: String