matype / stylefmt

stylefmt is a tool that automatically formats stylesheets.
Other
2.1k stars 89 forks source link

Math formatting bugfixes #70

Closed kristerkari closed 8 years ago

kristerkari commented 8 years ago

The previous math formatting fixes broke formatting some properties that were not included in tests.

So this CSS:

.class {
  margin: 0   20px  0 -24px;
  background-position:20% -26px;
  transform-style: preserve-3d;
}

formats before these fixes to:

.class {
  margin: 0 20px 0  - 24px;
  background-position: 20%  - 26px;
  transform-style: preserve - 3d;
}

and after these fixes:

.class {
  margin: 0 20px 0 -24px;
  background-position: 20% -26px;
  transform-style: preserve-3d;
}

I also fixed a bug where / formatting was applied to font shorthand property, breaking the font-size/line-height syntax.

so this property:

.class {
  font: normal normal normal 12px/20px myfont;
}

was formatted to:

.class {
  font: normal normal normal 12px / 20px myfont;
}

Changes:

palashkaria commented 7 years ago

I'm running stylefmt 6.0.0, and I an facing an issue which I think should've been fixed by this?

hover-spaced-6-8-light changes to hover-spaced-6 - 8-light

before:

screen shot 2017-08-19 at 4 01 45 am

after:

screen shot 2017-08-19 at 4 01 35 am

edit: #195 is related