diff --git a/lib/src/visitor/serialize.dart b/lib/src/visitor/serialize.dart index 0c3ec1a1..6375ebb4 100644 --- a/lib/src/visitor/serialize.dart +++ b/lib/src/visitor/serialize.dart @@ -132,11 +132,7 @@ class _SerializeCssVisitor void visitMediaRule(CssMediaRule node) { _writeIndentation(); _buffer.write("@media "); - - for (var query in node.queries) { - visitMediaQuery(query); - } - + _writeBetween(node.queries, ", ", visitMediaQuery); _buffer.writeCharCode($space); _visitChildren(node.children); }