mirror of
https://github.com/less/less.js.git
synced 2026-01-22 13:48:03 -05:00
add more scope tests - test what the current behaviour is
This commit is contained in:
@@ -13,3 +13,6 @@
|
||||
border-color: #000000;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
.scope {
|
||||
scoped-val: #008000;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
Reference in New Issue
Block a user