pl.wendigo.chrome.api.css / CSSMedia

CSSMedia

data class CSSMedia (source)

CSS media rule descriptor.

Link
CSS#CSSMedia type documentation.

Constructors

<init>

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

CSS media rule descriptor.

Properties

mediaList

val mediaList: List<MediaQuery>?

Array of media queries.

range

val range: SourceRange?

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

source

val source: String

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.

sourceURL

val sourceURL: String?

URL of the document containing the media query description.

styleSheetId

val styleSheetId: StyleSheetId?

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

text

val text: String

Media query text.