Skip to content

Implement CSS Colors level 4 #29

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions