Class CSSMedia
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
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
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
SourceURL
URL of the document containing the media query description.
[JsonPropertyName("sourceURL")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? SourceURL { get; set; }
Property Value
StyleSheetId
Identifier of the stylesheet containing this object (if exists).
[JsonPropertyName("styleSheetId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? StyleSheetId { get; set; }
Property Value
Text
Media query text.
[JsonPropertyName("text")]
public string Text { get; set; }