New
v1.30.0
Features
- Update relative color parsing to latest spec: colors now support numbers in addition to percentages, and calcs in colors are now always numbers. Note that this was technically a breaking change in the spec. You may need to update code using relative color calculations on percentages to use numbers instead. See the PR for details. – #465
- Update nesting implementation for new spec: It is now possible to nest selectors with pseudo elements, and declarations and nested rules can be interleaved. See https://web.dev/blog/css-nesting-cssnesteddeclarations for more details. – https://github.com/parcel-bundler/lightningcss/commit/6c465c123deb549dfb45fd3558f25dca0dbde0d6
- Skip generating unnecessary
@supportsrules when already nested in a@supportsrule – #878, d398c1b86439dfd243a6c2ba627a8e7981118a44 - Improve error recovery for media queries – #954
- Add support for ::picker, ::picker-icon and ::checkmark – #957
- Add build support for Android – #932
Fixes
- Fix error message for invalid composes selectors – https://github.com/parcel-bundler/lightningcss/pull/948
- Update browserslist – https://github.com/parcel-bundler/lightningcss/pull/961
- Fix linear-gradient direction conversion for legacy vendor-prefixed values – #936
- Prevent new lines in license comments from breaking source maps – #971
- Do not inline layers before imports – 33ea2c149e2c94f6e45a86d6d666d092729c9523
- Statically link Visual Studio redistributables on Windows builds – e5c4139be325c03704072c948be38f8b1f990071
- update browser compat data – 17bdc80ff5282c410daf65d135ef6cac79200e55