From cfde58463b0a156f213b74a5bda5bf2dac60585c Mon Sep 17 00:00:00 2001 From: cloudhead Date: Tue, 6 Jul 2010 16:52:33 +0200 Subject: [PATCH] (test) mixin closures --- test/css/mixins-closure.css | 9 +++++++++ test/less/mixins-closure.less | 26 ++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 test/css/mixins-closure.css create mode 100644 test/less/mixins-closure.less diff --git a/test/css/mixins-closure.css b/test/css/mixins-closure.css new file mode 100644 index 0000000..b1021b6 --- /dev/null +++ b/test/css/mixins-closure.css @@ -0,0 +1,9 @@ +.class { + width: 99px; +} +.overwrite { + width: 99px; +} +.nested .class { + width: 5px; +} diff --git a/test/less/mixins-closure.less b/test/less/mixins-closure.less new file mode 100644 index 0000000..01251d2 --- /dev/null +++ b/test/less/mixins-closure.less @@ -0,0 +1,26 @@ +.scope { + @var: 99px; + .mixin () { + width: @var; + } +} + +.class { + .scope > .mixin; +} + +.overwrite { + @var: 0px; + .scope > .mixin; +} + +.nested { + @var: 5px; + .mixin () { + width: @var; + } + .class { + @var: 10px; + .mixin; + } +}