Skip to content

Implement CSS Colors level 4 #29

@jaraco

Description

@jaraco

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''

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions