Skip Menu |

This queue is for tickets about the Text-Sass CPAN distribution.

Report information
The Basics
Id: 62473
Status: resolved
Priority: 0/
Queue: Text-Sass

People
Owner: rmp [...] psyphi.net
Requestors: bo [...] startsiden.no
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.5
Fixed in: (no value)



Subject: wikipedia example broken
Seems like Text::Sass implements whitespace in another way than the example in wikipedia: http://en.wikipedia.org/wiki/Sass_(stylesheet_language) In Text::Sass the example does not nest the attributes. - Bjørn-Olav
Adding a test.
Subject: RT-62473-wikipedia-example.t
use strict; use warnings; use Text::Sass '0.5'; use Test::More tests => 1; { my $css = <<EOT; #header { background: #FFFFFF; } #header .error { color: #FF0000; } #header a { text-decoration: none; } #header a:hover { text-decoration: underline; } EOT my $sass = <<EOT; #header background: #FFFFFF /* -or- :background #FFFFFF .error color: #FF0000 a text-decoration: none &:hover text-decoration: underline EOT my $ts = Text::Sass->new(); is($ts->sass2css($sass), $css, "sass to css conversion ok"); }
I think this is resolved in v0.7, just uploaded to CPAN. Added several test files but could definitely do with more. Thanks for yours (though I had nearly identical ones by the time you added them :) ).