less / old-lesscss.org

The OLD lesscss.org. For the new one see less-docs.
http://lesscss.org
90 stars 48 forks source link

Update docs to encourage only performing operations within parentheses #29

Closed dmcass closed 12 years ago

dmcass commented 12 years ago

Pretty much exactly what the title says. Let me know if you want me to change anything.

EvanLovely commented 12 years ago

Out of curiosity, why? I see that you said this in the commit:

Operations should only be performed within parentheses in order to ensure compatibility with CSS.

dmcass commented 12 years ago

Because LESS will be moving to that model. In a future version of LESS any operations performed outside of parentheses will not be evaluated. CSS is using forward slash to delimit multiple values of the same type (elliptical border-radius, background shorthand), and they may use other "operators" in the future to do something different. Encouraging people to wrap their operations in parentheses now means less breakage in the future.

EvanLovely commented 12 years ago

Awesome, thanks for the background! Good habits now that make less stress in the future sounds good to me!

lukeapage commented 12 years ago

great, will commit this when I do 1.3.1

lukeapage commented 12 years ago

pulled.