Support “custom units”
CSS Custom Units proposal was recently accepted and it would be awesome if parcel CSS allowed us to use that syntax today and then compile it down to what is currently supported by browsers.
See: https://github.com/w3c/csswg-drafts/issues/7379#issuecomment-1170229274
Interesting. Perhaps a bit early to implement, but I look forward to seeing the spec.
This could be implemented as a custom transform now: https://lightningcss.dev/transforms.html. There's an example of this in the tests: https://github.com/parcel-bundler/lightningcss/blob/6fb77292c9ef4320fa85a1e26fec3fbdbae3cf8a/node/test/visitor.test.mjs#L34-L86.
I'll leave this open to implement natively once it appears in a spec though.