Skip to content

Commit 3642ca9

Browse files
committed
Added target tests for namespacing
1 parent bb6da28 commit 3642ca9

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "less",
3-
"version": "3.0.0-RC.1",
3+
"version": "4.0.0-alpha.1",
44
"description": "Leaner CSS",
55
"homepage": "http://lesscss.org",
66
"author": {

test/css/namespacing.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.foo {
2+
color: red;
3+
color: red;
4+
prop: bar;
5+
var: baz;
6+
sub: value;
7+
}

test/less/namespacing.less

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
@varToGet: default-color;
2+
.foo {
3+
color: @defaults[@default-color];
4+
color: @defaults[@@varToGet];
5+
prop: #ns1[foo];
6+
var: #ns1[@foo];
7+
sub: #ns1.vars[$sub];
8+
}
9+
@defaults: {
10+
@default-color: red;
11+
};
12+
#ns1 {
13+
foo: bar;
14+
@foo: baz;
15+
.vars() {
16+
sub: value;
17+
}
18+
}

0 commit comments

Comments
 (0)