Skip to content

[BUG]: uppercase function names, angle units return undefined, throw error, respectively #276

Description

@camdecoster

Description

Passing in function names and angle units in uppercase causes culori to throw. Uppercase function names and angle units are allowed per the CSS spec.

Screenshots

Image

Steps to reproduce

  • Open the culori site
  • Open the browser devtools console
  • Enter culori.parse("RGB(128 0 0)")
  • Note that undefined is returned
  • Enter culori.parse("hsl(0DEG 100% 50%)")
  • Note that an error is thrown

Notes

  • The CSS values spec states that function names should be case-insensitive
  • The CSS values spec states that unit identifiers should be case-insensitive

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

    BugSomething isn't workingHelp WelcomeExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions