cssutils
cssutils copied to clipboard
In 2.10.2 (the latest version) I'm seeing a deprecation warning: ```python /opt/venv/lib/python3.12/site-packages/cssutils/_fetchgae.py:6: DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13 import cgi ``` It seems this is...
After re-enabling complexity checks in ruff, we've found yet another function that's too complex - a function that was previously missed, presumably due to a different implementation or lack of...
I was using cssutils to pull color data from a website and came across what I believe to be a bug. Test Code: ```py test = ".auto-style5 { width: 250px;...
for example: ```shell python -m cssutils.scripts.cssparse -s 'a {word-break: normal;}' WARNING Property: Unknown Property name. [1:4: word-break] b'a {\n word-break: normal\n }' ``` Can I help? Where to start?
Several variants of `test_validateWithProfile` are failing to meet expectations: ``` cssutils main $ tox -- -k validateWithProfile --runxfail .pkg: _optional_hooks> python /Users/jaraco/.local/pipx/venvs/tox/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta .pkg: get_requires_for_build_editable> python /Users/jaraco/.local/pipx/venvs/tox/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta...
The CSS "rem" unit is missing here [https://github.com/jaraco/cssutils/blob/57179fead6a8eecb78be35a5597797ffca62e3b2/cssutils/profiles.py#L91](https://github.com/jaraco/cssutils/blob/57179fead6a8eecb78be35a5597797ffca62e3b2/cssutils/profiles.py#L91)
According to MDN's documentation on [At-Rules Nesting](https://developer.mozilla.org/en-US/docs/Web/CSS/At-rule#nested), `@font-face` is allowed to be nested within conditional At-Rules such as `@media` but this library flags that as an error and strips it...
In #28, a user reported an issue parsing colors with the `/` symbol in them. Here's a minimum reproducer: ``` python -m cssutils.scripts.cssparse -s '.any{color:rgb(0 0 0 / 0.4)}' ERROR...
If I use `rem` as a length unit, I get an "invalid value" error: `ERROR Property: Invalid value for "CSS Backgrounds and Borders Module Level 3" property: 0.75rem [1:1: border-radius]`...