Table of Contents

Class CSSMedia

Namespace
OpenQA.Selenium.DevTools.V148.CSS
Assembly
Selenium.WebDriver.dll

CSS media rule descriptor.

public sealed class CSSMedia
Inheritance
CSSMedia
Inherited Members

Properties

MediaList

Array of media queries.

[JsonPropertyName("mediaList")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public MediaQuery[]? MediaList { get; set; }

Property Value

MediaQuery[]

Range

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

[JsonPropertyName("range")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public SourceRange? Range { get; set; }

Property Value

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.

[JsonPropertyName("source")]
public CSSMediaSourceValues Source { get; set; }

Property Value

CSSMediaSourceValues

SourceURL

URL of the document containing the media query description.

[JsonPropertyName("sourceURL")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? SourceURL { get; set; }

Property Value

string

StyleSheetId

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

[JsonPropertyName("styleSheetId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? StyleSheetId { get; set; }

Property Value

string

Text

Media query text.

[JsonPropertyName("text")]
public string Text { get; set; }

Property Value

string