Skip to content

How to handle invalid CSS values #427

@vladinator1000

Description

@vladinator1000

HI folks, should lightningcss throw an error when you pass it invalid CSS like this one?

.corrupt {
  color: hsla(120, 62.32%;
}

I was hoping this to throw so that I can use lightningcss to validate a dynamic CSS input at runtime.

Playground

For example, when browsers encounter this they error:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions