This is expected. Subtraction has higher precedence than the space
"operator", so it happens first.

On Mon, Dec 20, 2010 at 3:05 PM, Abhik Pramanik <abh...@gmail.com> wrote:

> In SASS (or SCSS) negating a variable doesn't seem to work they I would
> expect:
>
> $page-width: 2px
>
> #content
>   margin: 0 2 0 -$page-width
>
> yields:
>
> #content { margin: 0 2 -2px; }
>
> I would expect it to be:
>
> #content { margin: 0 2 0 -2px; }
>
> I can only achieve this by:
>
> $page-width: 2px
>
> #content
>   margin: 0 2 0 (-$page-width)
>
> Is this expected or a bug?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Haml" group.
> To post to this group, send email to h...@googlegroups.com.
> To unsubscribe from this group, send email to
> haml+unsubscr...@googlegroups.com <haml%2bunsubscr...@googlegroups.com>.
> For more options, visit this group at
> http://groups.google.com/group/haml?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to h...@googlegroups.com.
To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/haml?hl=en.

Reply via email to