Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Does not understand CSS Color level 5 relative color functions #216

Open
lachieh opened this issue Aug 9, 2024 · 0 comments
Open
Labels

Comments

@lachieh
Copy link

lachieh commented Aug 9, 2024

Describe the bug

When using the new(ish) CSS Color level 5 functions with relative colors, I get a warning about 'Unrecognized text'.

Expected behaviour

I'd expect that this be left alone for the browser to calculate at runtime. I imagine there are some cases where its possible to calculate the final value, but taking things like color spaces into consideration to do the calculation seems like it might be a little far out of scope for this project. That's just my opinion, though.

Steps to reproduce

input:

a {
   color(from blue oklab calc(l * 0.9) a b / alpha)
}

warning:

Lexical error on line 1: Unrecognized text.

Erroneous area:
1: l * 0.9
^..^

Version

9.0.1

Environment

System:
    OS: macOS 14.6
    CPU: (10) arm64 Apple M1 Max
    Memory: 496.95 MB / 64.00 GB
    Shell: 5.9 - /bin/zsh

Package details

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant