parcel-bundler / lightningcss

An extremely fast CSS parser, transformer, bundler, and minifier written in Rust.
https://lightningcss.dev
Mozilla Public License 2.0
6.56k stars 190 forks source link

Using `oklch` and `currentColor` inside `box-shadow` still fails for certain targets like `safari14` #800

Closed hi-ogawa closed 3 months ago

hi-ogawa commented 3 months ago

Playground reproduction

Transforming a following css with a target "Safari: 14" fails.

.test {
  box-shadow:
    oklch(100% 0 0deg / 50%) 0 0.63rem 0.94rem -0.19rem,
    currentColor 0 0.44rem 0.8rem -0.58rem;
}

It looks like a previous issue https://github.com/parcel-bundler/lightningcss/issues/721 is not completely fixed. The issue is originally reported on Vite https://github.com/vitejs/vite/issues/17900