Closed andreymal closed 5 years ago
.foo { width: calc(100% / 3 * 3); height: calc(calc(100% / 3) * 3); }
Expected output:
.foo { width: 100%; height: 100%; }
Actual output:
.foo { width: 100%; height: 99.99999%; }
reduce-css-calc is also affected
Note that it works in Firefox and Chrome:
@andreymal Just increase precision parameter: https://github.com/postcss/postcss-calc#precision-default-5
precision
@Semigradsky no, I want precision=5 with correct rounding
Expected output:
Actual output:
reduce-css-calc is also affected
Note that it works in Firefox and Chrome: