Skip to content

10.1 “Pula”

Compare
Choose a tag to compare
@ai ai released this 08 Dec 07:47
· 182 commits to main since this release
10.1.0

Coat of arms of Botswana

Autoprefixer 10.1 improved min-resolution support.

@infusion added dpcm unit support and num2fraction with Fraction.js, which uses Farey Sequences as a rational approximation (more precise) and simplifies the fraction using continued fractions to ɛ <0.001 afterward.

/* input */
@media (min-resolution: 113.38dpcm) {
  …
}

/* output */
@media (-webkit-min-device-pixel-ratio: 3),
       (min--moz-device-pixel-ratio: 3),
       (-o-min-device-pixel-ratio: 3/1),
       (min-resolution: 113.38dpcm) {
  …
}