Table of Contents

Class CSSMediaRule

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The CSSMediaRule interface represents a single CSS @media rule.

[Value("CSSMediaRule")]
public class CSSMediaRule : CSSConditionRule
Inheritance
CSSMediaRule
Inherited Members

Remarks

Constructors

CSSMediaRule()

public CSSMediaRule()

Properties

Matches

[Value("matches")]
public bool Matches { get; }

Property Value

bool

Media

The read-only media property of the CSSMediaRule interface contains a MediaList object representing the media query list of the {{cssxref("@media")}} rule.

[Value("media")]
public MediaList Media { get; }

Property Value

MediaList

A MediaList object.Although the media property itself is read-only in the sense that you can't replace the MediaList object, you can still assign to the media property directly, which is equivalent to assigning to its MediaListmediaText property. You can also modify the MediaList object using the MediaListappendMedium and MediaListdeleteMedium methods.

Remarks