A few utility functions which may help when working with CSS stylesheets.
Retrieve all url(urlstring) values (in e.g. cssutils.css.CSSImportRule or cssutils.css.CSSValue objects of given sheet.
Parameter: | sheet – cssutils.css.CSSStyleSheet object whose URLs are yielded |
---|
This function is a generator. The generated URL values exclude url( and ) and surrounding single or double quotes.
Replace all URLs in cssutils.css.CSSImportRule or cssutils.css.CSSValue objects of given sheet.
Parameters: |
|
---|
Recurcively combine all rules in given sheet into a target sheet.
Parameters: |
|
---|---|
Returns: | given target or a new cssutils.css.CSSStyleSheet object |