Skip to content

Commit

Permalink
Added target tests for namespacing
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-dean committed Feb 4, 2018
1 parent bb6da28 commit 3642ca9
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "less",
"version": "3.0.0-RC.1",
"version": "4.0.0-alpha.1",
"description": "Leaner CSS",
"homepage": "http://lesscss.org",
"author": {
Expand Down
7 changes: 7 additions & 0 deletions test/css/namespacing.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.foo {
color: red;
color: red;
prop: bar;
var: baz;
sub: value;
}
18 changes: 18 additions & 0 deletions test/less/namespacing.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
@varToGet: default-color;
.foo {
color: @defaults[@default-color];
color: @defaults[@@varToGet];
prop: #ns1[foo];
var: #ns1[@foo];
sub: #ns1.vars[$sub];
}
@defaults: {
@default-color: red;
};
#ns1 {
foo: bar;
@foo: baz;
.vars() {
sub: value;
}
}

0 comments on commit 3642ca9

Please sign in to comment.