Class CSSImportRule
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
[Value("CSSImportRule")]
public class CSSImportRule : CSSRule
- Inheritance
-
CSSImportRule
- Inherited Members
Remarks
Constructors
CSSImportRule()
public CSSImportRule()
Properties
Href
The read-only href property of the
CSSImportRule interface returns the URL specified by the
@import at-rule.
[Value("href")]
public string Href { get; }
Property Value
- string
A string.
Remarks
The resolved URL will be the href attribute of the
associated stylesheet.
LayerName
The read-only layerName property of the CSSImportRule interface returns the name of the cascade layer created by the {{cssxref("@import")}} at-rule.
[Value("layerName")]
public string? LayerName { get; }
Property Value
- string
A string, that can be empty, or the
nullobject.
Remarks
If the created layer is anonymous, the string is empty (""), if no layer has been
created, it is the null object.
-Learning area : Cascade layers
-@import and @layer
Media
The read-only media property of the CSSImportRule interface returns a MediaList object representing the media query list of the {{cssxref("@import")}} 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.
Remarks
StyleSheet
The read-only styleSheet property of the
CSSImportRule interface returns the CSS Stylesheet specified by the
@import at-rule. This will be
in the form of a CSSStyleSheet object.
[Value("styleSheet")]
public CSSStyleSheet? StyleSheet { get; }
Property Value
Remarks
SupportsText
The read-only supportsText property of the CSSImportRule interface returns the supports condition specified by the {{cssxref("@import")}} at-rule.
[Value("supportsText")]
public string? SupportsText { get; }
Property Value
- string
A string, or
null.