You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem appeared for me with the latest CodeKit but this has been reproduced using most recent version of less.js
Exemple : LESS
@fontRem = 17rem;
.whatever{
font-size:25/@fontRem;
} CSS OUTPUT
.whatever{font-size:1,47058824}
(unit is absent) Used to be
.whatever{font-size:1,47058824rem}
This only fails with the / operator and only if left unit is absent.
30rem/15rem does output 2rem
Activity
lukeapage commentedon Jan 28, 2015
looks like behaviour changed in v2 and probably shouldn't have.
with strict units it is correct because the final unit of your output is "1/rem"
hermanndettmann commentedon Jan 30, 2015
I have the same issue with em-units!
hawkz commentedon Jan 30, 2015
It does seem that units should be preserved according to the docs: http://lesscss.org/features/#features-overview-feature-operations
"If a unit is used in an operation... Less will use that unit for the final output."
if strict units are off also use the denominator, if there is no nume…