connorskees / grass

A Sass compiler written purely in Rust
https://docs.rs/grass/
MIT License
499 stars 38 forks source link

compressed output is eliding zeros #53

Closed ryanbarry closed 3 years ago

ryanbarry commented 3 years ago

Minimal Reproducible Example:

.box {
    box-shadow: 0 0.5em gray;
}

grass Output: (with style set to compressed)

.box{box-shadow: .5em gray}

dart-sass Output: (with style set to compressed)

.box{box-shadow:0 .5em gray}

the output does match dart-sass when they both have style set to expanded

connorskees commented 3 years ago

Hello, thank you for this report. This has been resolved in https://github.com/connorskees/grass/commit/a6eb1fb88a5cdf0be6ebf3aa50fc3247ed63df6c. This fix will be released in 0.10.8 later today, or tomorrow.

ryanbarry commented 3 years ago

awesome, such quick turnaround! also, grass is great, thanks for putting it together!

connorskees commented 3 years ago

This has been published to crates.io as v0.10.8. Thanks again for such a nice report!