less.ruby icon indicating copy to clipboard operation
less.ruby copied to clipboard

Support for unit conversions

Open chriseppstein opened this issue 15 years ago • 0 comments

This code gives an error:

@base: 12px / 1em;
div { width: 16px / @base; }

When it would generate valid CSS:

div {width: 1.333em;}

Ditto for units that are comparable under addition and subtraction:

div {width: 10cm + 100mm;} /* Should be 20cm or 200mm */

chriseppstein avatar Dec 20 '09 16:12 chriseppstein