Skip to content

Commit 7910be8

Browse files
committed
fix css output
1 parent e6b3257 commit 7910be8

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

packages/svelte/src/compiler/print/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ function block(context, node, allow_inline = false) {
4444
/** @type {Visitors<AST.SvelteNode>} */
4545
const css_visitors = {
4646
Atrule(node, context) {
47-
// TODO seems to produce too many new lines sometimes. Also new lines above style tag?
4847
context.write(`@${node.name}`);
4948
if (node.prelude) context.write(` ${node.prelude}`);
5049

@@ -67,7 +66,6 @@ const css_visitors = {
6766

6867
for (const child of node.children) {
6968
if (started) {
70-
context.margin();
7169
context.newline();
7270
}
7371

packages/svelte/tests/print/samples/style/output.svelte

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,13 @@
1919
from {
2020
opacity: 0;
2121
}
22-
2322
to {
2423
opacity: 1;
2524
}
2625
}
2726
2827
@font-face {
2928
font-family: "MyFont";
30-
3129
src: url("/fonts/MyFont.woff2") format("woff2");
3230
}
3331
@@ -53,7 +51,6 @@
5351
5452
.card::before {
5553
content: "";
56-
5754
display: block;
5855
}
5956

0 commit comments

Comments
 (0)