Skip to content
This repository was archived by the owner on Dec 24, 2020. It is now read-only.

Update docs to encourage only performing operations within parentheses #29

Closed
wants to merge 1 commit into from

Conversation

dmcass
Copy link
Contributor

@dmcass dmcass commented Aug 22, 2012

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

@EvanLovely
Copy link

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
Copy link
Contributor Author

dmcass commented Oct 8, 2012

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
Copy link

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

@lukeapage
Copy link
Member

great, will commit this when I do 1.3.1

@lukeapage
Copy link
Member

pulled.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants