swc_css_parser
throws exception when parsing oklch
/oklab
color function with certain arguments
#9766
Labels
swc_css_parser
throws exception when parsing oklch
/oklab
color function with certain arguments
#9766
Describe the bug
With certain arguments it is not possible to parse the CSS function
oklch
, as a result of which the following error occurs:Result::unwrap()
on anErr
value: x Unexpected valueThe same problem also occur with the function
oklab
.Input code
Config
No response
Playground link (or link to the minimal reproduction)
https://github.com/Dwlad90/swc/tree/bug/oklch
SWC Info output
Expected behavior
Correct parsing to valid AST
Actual behavior
No response
Version
4.0.0
Additional context
Link to SWC CSS Playground
To reproduce the error, please run
cargo test -p swc_css_parser
in the provided repoThanks to @HQ92 for finding the bug,
Original issue: Dwlad90/stylex-swc-plugin#119
The text was updated successfully, but these errors were encountered: