Skip to content

[Form] Allow hexadecimal colors with 3 characters in ColorType #41785

@YaFou

Description

@YaFou

Description

A new option was introduced in #36302 called html which validates if the color respects HTML rules about hexadecimal colors. This takes into account colors like #FFFFFF or #06CD8E.


However, it is very common to find colors formatted like the following example: #FFF. But this format isn't valid in the ColorType. Perhaps, it will be nice to have the support of this format.
Moreover, there is another format, less popular, which takes into account the alpha channel: #FFFFFFDD but I don't know if it is worth to support it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    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