add more scope tests - test what the current behaviour is

This commit is contained in:
Luke Page
2012-10-23 17:22:43 +01:00
parent 5325291f36
commit 776a5d87e5
2 changed files with 16 additions and 1 deletions

View File

@@ -13,3 +13,6 @@
border-color: #000000;
background-color: #ffffff;
}
.scope {
scoped-val: #008000;
}

View File

@@ -1,3 +1,4 @@
@x: red;
@x: blue;
@z: transparent;
@mix: none;
@@ -5,7 +6,7 @@
.mixin {
@mix: #989;
}
@mix: blue;
.tiny-scope {
color: @mix; // #989
.mixin;
@@ -30,3 +31,14 @@
}
}
}
#namespace {
.scoped_mixin() {
@local-will-be-made-global: green;
.scope {
scoped-val: @local-will-be-made-global;
}
}
}
#namespace > .scoped_mixin();