CssStyleRule Class
https://drafts.csswg.org/cssom/#the-cssstylerule-interface
public sealed class CssStyleRule : CssGroupingRule- Inheritance
CssGroupingRuleCssStyleRule
Properties
| Name | Description |
|---|---|
| SelectorText | Gets or sets the serialized selector list of the rule. |
| Selectors | The parsed selector list of the rule (the parsed form of CssStyleRule.SelectorText). |
| Style | Gets the declaration block of the rule. |
| StyleMap | The declarations of the rule as CssStyleValue objects (https://drafts.css-houdini.org/css-typed-om-1/#dom-cssstylerule-stylemap). |
| Type | Gets the legacy numeric type of the rule: CssRule.StyleRule for style rules. |
SelectorText
CSSRules.csGets or sets the serialized selector list of the rule.
public string SelectorText { get; set; }Selectors
CSSRules.csThe parsed selector list of the rule (the parsed form of CssStyleRule.SelectorText).
public SelectorList Selectors { get; }Property value
Style
CSSRules.csGets the declaration block of the rule.
public CssStyleProperties Style { get; }StyleMap
CSSRules.csThe declarations of the rule as CssStyleValue objects (https://drafts.css-houdini.org/css-typed-om-1/#dom-cssstylerule-stylemap).
public StylePropertyMap StyleMap { get; }Property value
See also
Type
CSSRules.csGets the legacy numeric type of the rule: CssRule.StyleRule for style rules.
public override ushort Type { get; }