summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEevee (Alex Munroe) <eevee.git@veekun.com>2013-08-01 17:19:17 -0700
committerEevee (Alex Munroe) <eevee.git@veekun.com>2013-08-01 17:19:17 -0700
commit01c8fab5f31fd01a3d5c72e48839351c7e46b78c (patch)
treeb8ad826c457dbf0a6fd3ddfe4e1a43b26736a909
parent403451650f875d58ce6d3231808cfeac1db5bda3 (diff)
downloadpyscss-01c8fab5f31fd01a3d5c72e48839351c7e46b78c.tar.gz
Quick test for nested scopes.
-rw-r--r--scss/tests/files/general/005-nested-scope.css7
-rw-r--r--scss/tests/files/general/005-nested-scope.scss12
2 files changed, 19 insertions, 0 deletions
diff --git a/scss/tests/files/general/005-nested-scope.css b/scss/tests/files/general/005-nested-scope.css
new file mode 100644
index 0000000..a8d1e17
--- /dev/null
+++ b/scss/tests/files/general/005-nested-scope.css
@@ -0,0 +1,7 @@
+.scoped {
+ color: white;
+ background-color: blue;
+}
+.unscoped {
+ color: white;
+}
diff --git a/scss/tests/files/general/005-nested-scope.scss b/scss/tests/files/general/005-nested-scope.scss
new file mode 100644
index 0000000..51dea0f
--- /dev/null
+++ b/scss/tests/files/general/005-nested-scope.scss
@@ -0,0 +1,12 @@
+$color: black;
+.scoped {
+ $bg: blue;
+ $color: white;
+ color: $color;
+ background-color: $bg;
+}
+.unscoped {
+ color: $color;
+ // Would be an error
+ // background: $bg;
+}