csstools / postcss-preset-env

Convert modern CSS into something browsers understand
https://github.com/csstools/postcss-plugins/tree/main/plugin-packs/postcss-preset-env
Creative Commons Zero v1.0 Universal
2.22k stars 90 forks source link

`lch()` not working #208

Closed vjee closed 2 years ago

vjee commented 3 years ago

When setting stage to 2 as to be able to use lch(), it's not being transformed. Neither when setting lab-function (same plugin) to true in features.

When manually using postcss-lab-function however, it works as expected.

andparsons commented 3 years ago

I'm having the same issue. It looks like when used via postcss-preset-env the lab/lch function isn't able to parse the first param as a percentage, and only works in the older format without.

romainmenke commented 2 years ago

@vjee Is this still an issue with the latest versions? If so can you provide an example input?

vjee commented 2 years ago

@romainmenke It seems to work just fine now! Here's an example: https://runkit.com/embed/kfsp7ev1rmr9 Thanks for checking this issue out. It can be closed as far as I'm concerned :)