Cssutils

Latest version: v2.11.1

Safety actively analyzes 683530 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 12 of 21

0.9.7a2

- **API CHANGE**: Setting a style declarations' property to ``None`` or the empty string effectively removes this property from the declaration. See also Issue Bitbucket 32.

+ **BUGFIX/FEATURE**: Fixed Issue 33: URL references (like ``url()`` values) in combined sheets are now adjusted even if sheets are not in the same folder. Only relative paths are adjusted.

- **BUGFIX**: Fixed parsing of FUNCTIONS in CSSUnknownRule like ``bottom { counter(page) }`` which raised a false error of a mismatch of parenthesis

+ FEATURE: Added parameter ``ignoreImportRules=False`` to ``cssutils.replaceUrls`` which when set to ``True`` no longer reports URLs from import rules but property values only (see Issue Bitbucket 33)

0.9.7a1

- test release only

0.9.7a0

- **API CHANGE**: Replaced init parameter and attribute ``css.Selector.parentList`` with ``css.Selector.parent``

- API CHANGE (minor): Removed ``css.Property.parentStyle`` which was deprecated for some times now in favor of ``css.Property.parent``

+ **IMPROVEMENT**: Massive speed improvement due to changes in internal parsing.

When tried in a real world situation (parsing the stylesheet for my own site inside a simple WSGI based CSS handler) the parser uses ~0.7-0.8s when using cssutils 0.9.6. With cssutils 0.9.7a0 it only needs ~0.21s so only about 1/3 to 1/4 the time...

+ FEATURE: Parameter `index` of ``CSSStyleSheet.deleteRule(index)`` and ``CSSMediaRule.deleteRule(index)`` may now also be a rule object to be removed from the contained cssRules list.

- INTERNAL: Added ``tokenizer.push()``. Prodparser uses a global tokenizer now.

0.9.6

+ BUGFIX: Definition of macro for `positivenum` in cssutils profiles actually did allow nagative numbers, fixed (thanks to Jason R. Coombs)

- distribution build with `distribute <http://pypi.python.org/pypi/distribute>`_ instead of setuptools

0.9.6b5

+ BUGFIX: Issue Bitbucket 30 fixed. Setup from source did not work.

0.9.6b4

+ BUGFIX: Issue Bitbucket 29 fixed. Double defined namespaces are replaced with a single (the last one) now.

- IMPROVEMENT: ``cssutils.resolveImports`` now keeps media information when to be resolved import rule uses these. It wraps the imported rules in an media rule which uses the same media information from the media rule in the original sheet.

An xml.dom.HierarchyRequestErr may occur if an imported sheet itself contains imports with media information or other rules which are not allowed in a media rule like namespace rules. In that case cssutils cannot resolve the import rule and logs a WARNING but keeps the original import.

Page 12 of 21

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.