From 776a5d87e5d34bc473ffd41e30951060e6bbc85f Mon Sep 17 00:00:00 2001 From: Luke Page Date: Tue, 23 Oct 2012 17:22:43 +0100 Subject: [PATCH] add more scope tests - test what the current behaviour is --- test/css/scope.css | 3 +++ test/less/scope.less | 14 +++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/test/css/scope.css b/test/css/scope.css index 11feda89..897aad18 100644 --- a/test/css/scope.css +++ b/test/css/scope.css @@ -13,3 +13,6 @@ border-color: #000000; background-color: #ffffff; } +.scope { + scoped-val: #008000; +} diff --git a/test/less/scope.less b/test/less/scope.less index da664626..a88811de 100644 --- a/test/less/scope.less +++ b/test/less/scope.less @@ -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(); \ No newline at end of file