Skip to content

Commit

Permalink
Updated dash tests to reproduce jpdutoit's issue
Browse files Browse the repository at this point in the history
  • Loading branch information
soffes committed Dec 1, 2009
1 parent 1692aac commit 0afa027
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 9 deletions.
15 changes: 12 additions & 3 deletions spec/css/dash-prefix.css
@@ -1,5 +1,14 @@
body {
background: green;
.test1 {
background-image: -moz-linear-gradient(top, bottom, from(#030303), to(#010101));
background-image: -webkit-gradient(linear, left top, left bottom, from(#030303), to(#010101));
}

.test2 {
background-image: -moz-linear-gradient(top, bottom, from(#020202), to(#010101));
background-image: -webkit-gradient(linear, left top, left bottom, from(#020202), to(#010101));
}

.test3 {
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));
background-image: -webkit-gradient(linear, left top, left bottom, from(red), to(green));
}
25 changes: 19 additions & 6 deletions spec/less/dash-prefix.less
@@ -1,8 +1,21 @@
@top_color: red;
@bottom_color: green;
@global_color: #010101;
@red_color: red;
@green_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));
.gradient (@local_color: #030303) {
background-image: -moz-linear-gradient(top, bottom, from(@local_color), to(@global_color));
background-image: -webkit-gradient(linear, left top, left bottom, from(@local_color), to(@global_color));
}

.test1 {
.gradient;
}

.test2 {
.gradient(#020202);
}

.test3 {
background-image: -moz-linear-gradient(top, bottom, from(@red_color), to(@green_color));
background-image: -webkit-gradient(linear, left top, left bottom, from(@red_color), to(@green_color));
}

0 comments on commit 0afa027

Please sign in to comment.