Packages

@parcel/css

1.14.0 · 8 Sep 2022MPL-2.020.3k / weekRepositoryHomepagenpmAtom feed

Your version

1.7.0

19 Mar 2022Where it was published

1.14.0 is the newest release of 1.x.

In short

2 new7 changed

Release note

This release adds a number of new features, including improved vendor prefixing support, and support for new CSS syntax features.

  • Vendor prefixing and improved minification for mask properties. This includes collapsing multiple separate properties into shorthands, as well as support for new color fallbacks. Example.

  • Vendor prefixing for clip-path

  • Vendor prefixing for filter

  • Downlevel :not selector list syntax for older browsers

  • Parsing support for :has, now supported natively in Safari.

  • Support for @font-palette-values rule and font-palette property. These let you override the color palette of color fonts, such as emoji.

  • Support for many more length units, including in calc() simplification. These include new viewport units, and new font relative units from css-values-4.

  • Analyze url() dependencies in custom properties. Only absolute URLs are supported. Relative paths will throw an error. This is because in the browser, urls in custom properties resolve from the location where the var() is used, not where the custom property is defined. Therefore, without actually applying all var() usages, it's not possible to know all of the potential urls that will be resolved. Enforcing that these urls must be absolute resolves this ambiguity.

  • Update compatibility data from caniuse and mdn

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.