Skip to content

rgb with only two params incorrectly parse color #65

@gerdasi

Description

@gerdasi

Hey!

I'm using color package and have some local tests for invalid user input check. After recent release (4.0.2) couple of my tests started failing.
Previously rgb(255,2) color was invalid and now it returns [25, 5, 2].
The same goes for rgba(255,0) - it returns [25, 5, 0].

Is this expected behaviour? As far as I know, it should be invalid syntax 🤔 .
Thanks! 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy