Okay, thanks for the clarification. David On Tuesday, 19 April 2011 at 10:52 pm, Chris Eppstein wrote: > Variables are computed during compilation to CSS and @media blocks are > interpreted by the browser. This behavior is what you'd expect in a > browser-based implementation of Sass, but it's not how it works at the > present. > > chris > > On Tue, Apr 19, 2011 at 7:49 PM, David Jacobs > <develo...@allthingsprogress.com> wrote: > > I've found what seems to be a bug in Sass, but I may be misunderstanding > > how the library handles expression execution. > > > > @media screen > > $link_color: blue > > > > @media print > > $link_color: pink > > > > a:link > > color: $link_color > > > > The link color will always be pink, because both variable assignments are > > carried out regardless of the media. Is this expected? Shouldn't the > > assignments be lazy and not available if we don't enter the correct media > > block? > > > > Thanks, > > David > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Haml" group. > > To post to this group, send email to haml@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. > -- > You received this message because you are subscribed to the Google Groups > "Haml" group. > To post to this group, send email to haml@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. >
-- You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to haml@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.