[compass-devs] Mystery space: experimental-value mixin not working as expected

88 views
Skip to first unread message

Lorin Tackett

unread,
Apr 26, 2010, 4:20:57 PM4/26/10
to compas...@googlegroups.com
I'm adding display: box; support to Compass' arsenal of CSS3 badassery, and I've run into a bug, might be a Sass-related bug.

Mixin looks like:

But if I pass something to it like:
div.foobar {
  @include experimental-value(display,box);
}

It outputs:
div.foobar {
  display: -moz- box;
  display: -webkit- box;
  display: box;
}

Note: the space after the vendor prefix causes it to break. When I surround the entire value with quotation marks, it outputs without the space, but it still fails since the value is now surrounded by quotation marks in the output. =/

Halp?

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

Chris Eppstein

unread,
Apr 26, 2010, 5:16:56 PM4/26/10
to Compass Development
congratulations! you found an scss parser bug.

Lorin Tackett

unread,
Apr 26, 2010, 5:24:22 PM4/26/10
to compas...@googlegroups.com
Ohh! What's the prize?

The good news is, it looks like everything's ship shape with the Flexbox patch for Compass as soon as SCSS gets patched:

Should I request a pull or wait til you patch SCSS?

-Lorin

Nathan Weizenbaum

unread,
Apr 26, 2010, 5:36:49 PM4/26/10
to compas...@googlegroups.com
I've just pushed a fix.

Lorin Tackett

unread,
Apr 26, 2010, 5:51:08 PM4/26/10
to compas...@googlegroups.com
Thanks Nathan, that worked. Chris, when I built the tests again it outputted correctly without the space, but it's still outputting the space in the example CSS. I restarted the nanoc3 server. Any clues?

-Lorin
Reply all
Reply to author
Forward
0 new messages