These are chat archives for less/less.js

19th
Nov 2018
mijofr
@mijofr
Nov 19 2018 01:50
@a: -4px;
div {
    margin-right: calc(0px - @a);
}

output:

div {
  margin-right: calc(0px - -4px);
}

is this... intended?

the double negative seems problematic
Calvin Juárez
@calvinjuarez
Nov 19 2018 16:03
Does it behave properly? Less leaves calc() to its own devices. If CSS doesn’t recognize that, though, it might be worth opening an issue for future discussion. If CSS handles it correctly, however, then we all Gucci.