csstools / postcss-short

Use advanced shorthand properties in CSS
https://jonathantneal.github.io/postcss-short
Creative Commons Zero v1.0 Universal
189 stars 7 forks source link

Stripping "auto" #4

Closed kezzbracey closed 9 years ago

kezzbracey commented 9 years ago

Hey Jonathan,

I'm having trouble at the moment using postcss-short as it seems to strip "auto" from values.

Using node v0.12.7 and PostCSS 4.1.16

I tried a short test directly via Node to try and rule out conflicts:

css = ".test { margin: 0 auto; }"

postcss(require('postcss-short')).process(css).then(function (result) {

  result.warnings().forEach(function (warn) {
    console.warn(warn.toString());
  });

  console.log(result.css)

});

This outputs:

.test { margin: 0; }

Has anyone else experienced this?

Thanks!

jonathantneal commented 9 years ago

This appears to be working in the latest version just fine. [demo]