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
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
mediaproperty itself is read-only in the sense that you can't replace theMediaListobject, you can still assign to themediaproperty directly, which is equivalent to assigning to its MediaListmediaText property. You can also modify theMediaListobject using the MediaListappendMedium and MediaListdeleteMedium methods.