CSSRule (open)
Syntax
LOADLIB "wh::filetypes/css.whlib";
OBJECTTYPE CSSRule
Variables
- RECORD ARRAY pvt_prelude
List of the prelude tokens
Properties
- PROPERTY CHARSET_RULE
- PROPERTY csstext
- PROPERTY FONT_FACE_RULE
- PROPERTY IMPORT_RULE
- PROPERTY MARGIN_RULE
- PROPERTY MEDIA_RULE
- PROPERTY NAMESPACE_RULE
- PROPERTY PAGE_RULE
- PROPERTY STYLE_RULE
- PROPERTY type
- PROPERTY UNKNOWN_RULE
Functions
- STRING ARRAY FUNCTION ExtractURLs()
Extract all the used urls from the rule
- MACRO RewriteToScope(STRING scope, STRING htmlclass, STRING bodyclass)
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)
Rewrite all urls in this rule, recursively