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

Commit

Permalink
Added spec for properties prefixed with a dash
Browse files Browse the repository at this point in the history
  • Loading branch information
soffes authored and Alexis Sellier committed Dec 2, 2009
1 parent 3e22922 commit f97124f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/css/dash-prefix.css
@@ -0,0 +1,5 @@
body {
background: green;
background-image: -moz-linear-gradient(top, bottom, from(red), to(green));
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, red), color-stop(1, green));
}
4 changes: 4 additions & 0 deletions spec/engine_spec.rb
Expand Up @@ -30,6 +30,10 @@ def css file
lessify(:css_3).should == css(:css_3)
end

it "should handle properties prefixed with a dash" do
lessify(:dash_prefix).should == css(:dash_prefix)
end

it "should parse comments" do
lessify(:comments).should == css(:comments)
end
Expand Down
8 changes: 8 additions & 0 deletions spec/less/dash-prefix.less
@@ -0,0 +1,8 @@
@top_color: red;
@bottom_color: green;

body {
background: @bottom_color;
background-image: -moz-linear-gradient(top, bottom, from(@top_color), to(@bottom_color));
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0.00, @top_color), color-stop(1.00, @bottom_color));
}

0 comments on commit f97124f

Please sign in to comment.