CSSImportRule (open)
describs an @import rule. Spec: https://www.w3.org/TR/2013/WD-cssom-20131205/#the-cssimportrule-interface
Syntax
LOADLIB "wh::filetypes/css.whlib";
OBJECTTYPE CSSImportRule
Constructor
Variables
- RECORD ARRAY pvt_prelude (inherited from CSSRule)
List of the prelude tokens
Properties
- PROPERTY CHARSET_RULE (inherited from CSSRule)
- PROPERTY csstext (inherited from CSSRule)
- PROPERTY FONT_FACE_RULE (inherited from CSSRule)
- PROPERTY href
- PROPERTY IMPORT_RULE (inherited from CSSRule)
- PROPERTY MARGIN_RULE (inherited from CSSRule)
- PROPERTY media
The media attribute must return a MediaList object for the list of media queries specified with the @media rule.
- PROPERTY MEDIA_RULE (inherited from CSSRule)
- PROPERTY NAMESPACE_RULE (inherited from CSSRule)
- PROPERTY PAGE_RULE (inherited from CSSRule)
- PROPERTY STYLE_RULE (inherited from CSSRule)
- PROPERTY type
- PROPERTY UNKNOWN_RULE (inherited from CSSRule)
Functions
- STRING ARRAY FUNCTION ExtractURLs()
- MACRO RewriteToScope(STRING scope, STRING htmlclass, STRING bodyclass) (inherited from CSSRule)
Rewrites all selectors. Prepends all css style selectors with scope. If the first token in a selector is html or body, replace those with '.htmlclass' or '.bodyclass', respectivly (can't handle both html and body present!)
- MACRO RewriteURLs(FUNCTION PTR rewriter, RECORD options)