CssImportRule Class
https://drafts.csswg.org/cssom/#the-cssimportrule-interface
public sealed class CssImportRule : CssRule- Inheritance
CssRuleCssImportRule
Properties
| Name | Description |
|---|---|
| Href | Gets the URL of the imported style sheet. |
| LayerName | Gets the name of the cascade layer in which the imported style sheet is placed, an empty string for an anonymous layer, or null when the import has no layer. |
| Media | Gets the media query list that conditions the import. |
| StyleSheet | https://drafts.csswg.org/cssom/#dom-cssimportrule-stylesheet: the imported style sheet, or null until it is fetched with the DocumentLoader of the browsing context (it is never fetched without a loader, for a constructed style sheet, or when the supports() condition is false). |
| SupportsText | Gets the text of the supports() condition of the import, or null when the import has no condition. |
| Type | Gets the legacy numeric type of the rule: CssRule.ImportRule for @import rules. |
Href
CSSRules.csGets the URL of the imported style sheet.
public string Href { get; }LayerName
CSSRules.csGets the name of the cascade layer in which the imported style sheet is placed, an empty string for an anonymous layer, or null when the import has no layer.
public string? LayerName { get; }Media
CSSRules.csGets the media query list that conditions the import.
public MediaList Media { get; }StyleSheet
CSSRules.cshttps://drafts.csswg.org/cssom/#dom-cssimportrule-stylesheet: the imported style sheet, or null until it is fetched with the DocumentLoader of the browsing context (it is never fetched without a loader, for a constructed style sheet, or when the supports() condition is false).
public CssStyleSheet? StyleSheet { get; }SupportsText
CSSRules.csGets the text of the supports() condition of the import, or null when the import has no condition.
public string? SupportsText { get; }Type
CSSRules.csGets the legacy numeric type of the rule: CssRule.ImportRule for @import rules.
public override ushort Type { get; }