Less language is an extension of css and less4j compiles it into regular css. Less adds several dynamic features into css: variables, expressions, nested rules, and so on. Less was designed to be compatible with css and any correct css file is also correct less file.
145
stars
47
forks
source link
contrast function does not follow less.js spec #297
The light and dark parameters can be supplied in either order - the function will calculate their luma values and assign light and dark automatically, which means you can't use this function to select the least contrasting color by reversing the order.
I noticed that I wasn't getting the same colors in my CSS after switching to this compiler. I made a simple test of the contrast function with the light and dark colors in either order and got different results.
I noticed that I wasn't getting the same colors in my CSS after switching to this compiler. I made a simple test of the contrast function with the light and dark colors in either order and got different results.