pintariching / railwind

Tailwind compiler rewritten in rust
MIT License
317 stars 9 forks source link

Add more tests for all the classes #18

Closed pintariching closed 1 year ago

pintariching commented 1 year ago

Add test for all of the rest of the implemented classes. I used tailwind play to get the expected output and put it into expected.css, then copy the input into input.html and the output.css should be automatically generated.

Sometimes the order of the generated CSS classes differs from the tailwind expected input, so reordering the expected.css classes is allowed.

I also put arbitrary classes at the end of input.html for every class that supports it.

vermutely commented 1 year ago

I noticed the difference in behavior when I was writing the test code. Can I align with Tailwind Play behavior?

Example

Tailwind Play

Tailwind Play

Railwind

Railwind
pintariching commented 1 year ago

Yeah sure! A lot of the time, Tailwind adds declarations like this, that are not written in the documentation, so the only way to know is with Tailwind Play. That's also why we write tests 😁.

pintariching commented 1 year ago

Okay awesome, thank you for the tests! We're moving forward at a blistering pace!