Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compressed output adds extra ; for unknown at-directives #1772

Closed
xzyfer opened this issue Jul 13, 2015 · 1 comment
Closed

Compressed output adds extra ; for unknown at-directives #1772

xzyfer opened this issue Jul 13, 2015 · 1 comment

Comments

@xzyfer
Copy link

xzyfer commented Jul 13, 2015

Discovered by failing sass spec tests with Libsass. The extra ; is only present in compressed mode.

foo {
  @foo;
  a: b;
}

Produces

foo{@foo;;a:b}

Expected

foo{@foo;a:b}
@xzyfer
Copy link
Author

xzyfer commented Jul 13, 2015

An extension of this issue

foo {
  @foo;
  a: b;
  @bar;
}

Produces

foo{@foo;;a:b;@bar;}

Expected

foo{@foo;a:b;@bar}

The CSS 2.1 spec states

An at-rule consists of everything up to and including the next semicolon (;) or the next block, whichever comes first.

Which suggests the trailing ; in at-rules is optional.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant