Skip to content

Current sanitization of fill color prevents no-comma function syntax from working #17

@dotterian

Description

@dotterian

No-comma color functions syntax is valid CSS, is supported by all major browsers and used by me in production:

color: rgb(255 255 255/.5); /* Semi-transparent white */

But with current parameter sanitization it transforms into unparseable mess:

--squircle-fill: rgb(255255255/.5); /* Weird $#!7 */

This raises a question:
What was the reason of adding .replace(/\s/g, "")?
Can we safely remove it or replace it with something more refined, so we can keep no-comma syntax intact?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions