Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement CSS Colors level 4 #29

Open
jaraco opened this issue Nov 20, 2022 · 1 comment
Open

Implement CSS Colors level 4 #29

jaraco opened this issue Nov 20, 2022 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@jaraco
Copy link
Owner

jaraco commented Nov 20, 2022

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   COLOR_VALUE: Missing token for production end FUNC ")": ('CHAR', '/', 1, 22)
ERROR   PropertyValue: No match: ('CHAR', ')', 1, 27)
ERROR   PropertyValue: Unknown syntax or no value: rgb(0 0 0 / 0.4)
ERROR   CSSStyleDeclaration: Syntax Error in Property: color:rgb(0 0 0 / 0.4)
b''
@jaraco
Copy link
Owner Author

jaraco commented Nov 20, 2022

Apparently this syntax is part of CSS Colors Level 4. It would be great if someone would look into implementing this syntax and any other syntax required for colors level 4.

@jaraco jaraco added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Nov 20, 2022
@jaraco jaraco changed the title Unsupported color syntax Implement CSS Colors level 4 Nov 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant