CssMediaRule Class
https://drafts.csswg.org/css-conditional-3/#the-cssmediarule-interface
public sealed class CssMediaRule : CssConditionRule- Inheritance
CssConditionRuleCssMediaRule
Properties
| Name | Description |
|---|---|
| ConditionText | Gets the serialized media query list of the rule. |
| Matches | https://drafts.csswg.org/css-conditional-5/#dom-cssmediarule-matches: there is no viewport, so the media features are not evaluated. |
| Media | Gets the media query list of the rule. |
| Type | Gets the legacy numeric type of the rule: CssRule.MediaRule for @media rules. |
ConditionText
CSSRules.csMatches
CSSRules.cshttps://drafts.csswg.org/css-conditional-5/#dom-cssmediarule-matches: there is no viewport, so the media features are not evaluated.
public bool Matches { get; }Media
CSSRules.csGets the media query list of the rule.
public MediaList Media { get; }Type
CSSRules.csGets the legacy numeric type of the rule: CssRule.MediaRule for @media rules.
public override ushort Type { get; }