Skip to content

Commit

Permalink
Fixed property rendering in blocks. Closes stylus#440
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Oct 21, 2011
1 parent 424775b commit 7dde044
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/nodes/property.js
Expand Up @@ -40,6 +40,7 @@ Property.prototype.__proto__ = Node.prototype;

Property.prototype.clone = function(){
var clone = new Property(this.segments);
clone.name = this.name;
clone.lineno = this.lineno;
clone.filename = this.filename;
clone.segments = this.segments.map(function(node){ return node.clone(); });
Expand Down
5 changes: 5 additions & 0 deletions test/cases/regression.440.css
@@ -0,0 +1,5 @@
@-moz-keyframes foo {
0% {
barbaz: raz;
}
}
7 changes: 7 additions & 0 deletions test/cases/regression.440.styl
@@ -0,0 +1,7 @@
vendors = moz

@keyframes foo {
from {
{bar + baz}: raz;
}
}

0 comments on commit 7dde044

Please sign in to comment.