stylus / nib

Stylus mixins, utilities, components, and gradient image generation
http://stylus.github.io/nib
MIT License
1.91k stars 249 forks source link

Position shorthands not outputting correct top and left properties in CSS #238

Open arielserafini opened 10 years ago

arielserafini commented 10 years ago

Tested using nib@1.0.2

The following stylus code

a
  absolute 0 0

results in

a { 
  position:absolute;0:0;
}

when the expected result should be

a {
  position:absolute;
  left:0;
  top:0;
}
notslang commented 10 years ago

I'm pretty sure that you'd just write absolute top left... not sure if we are supposed to be supporting absolute 0 0 because our docs suck right now.

arielserafini commented 10 years ago

Well, that makes sense. I was pretty confident I'd used it with numeric values before, but now I'm not so sure. In any case, that should be supported some day, right?

notslang commented 10 years ago

hmm... yeah, it would make sense since <x> <y> is a pretty common convention.