Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Empty rule = Concatenation with next #300

Closed
indutny opened this Issue · 5 comments

4 participants

Fedor Indutny TJ Holowaychuk Mikhail Korepanov Jeff McMahan
Fedor Indutny
input:valid {}
input:invalid {
  background: red;
}

will compile to

input:valid, input:invalid {background: red;}
TJ Holowaychuk
tj commented

I think there's another issue for this, definitely still an open issue though

Mikhail Korepanov
Owner

Can't reproduce this with the latest version.

Mikhail Korepanov Panya closed this
Jeff McMahan

Something like this still happens (v0.13), but I'm not sure it's a bug. The following stylus:

body

section

nav
  background #eee

...compiles to:

body,
section,
nav {
  background: #eee;
}

To prevent concatenation, one has to add {} after the rule. Maybe that's by design, but it seems as though whitespace alone ought to do the trick. Am I wrong?

Mikhail Korepanov
Owner

@jeffmcmahan It is by design. Ident without brackets it's just ident (not selector without properties) and empty lines are ignored.

P.S. 0.13 is very old version, latest version is 0.43.1

Jeff McMahan

Whoa! That 0.13 must've been a typo in my package.json. How'd I miss that!?

Thanks.

EDIT: Got it---0.13 was the version for grunt-contrib-stylus.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.