Permalink
Browse files

Fixes #814 Add property function with media query

  • Loading branch information...
1 parent b4c438d commit bc358c1f27b994120d95fcf882973856eab4be68 @tonistiigi committed Oct 23, 2012
Showing with 14 additions and 0 deletions.
  1. +1 −0 lib/visitor/evaluator.js
  2. +6 −0 test/cases/regression.814.css
  3. +7 −0 test/cases/regression.814.styl
@@ -1007,6 +1007,7 @@ Evaluator.prototype.__defineGetter__('closestBlock', function(){
switch (block.node.nodeName) {
case 'group':
case 'function':
+ case 'media':
return block;
}
}
@@ -0,0 +1,6 @@
+@media (min-width: 1px) {
+ .test {
+ height: 10px;
+ width: 10px;
+ }
+}
@@ -0,0 +1,7 @@
+foo(x)
+ add-property('height', x)
+ x
+
+.test
+ @media (min-width: 1px)
+ width: foo(10px)

0 comments on commit bc358c1

Please sign in to comment.