Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Col-end does not support negative values #13754

Closed
eloyesp opened this issue May 28, 2024 · 2 comments · Fixed by #13780
Closed

Col-end does not support negative values #13754

eloyesp opened this issue May 28, 2024 · 2 comments · Fixed by #13780

Comments

@eloyesp
Copy link
Contributor

eloyesp commented May 28, 2024

This is a very small issue, col-end does not support negative values out of the box, but negative values makes a lot of sense there. This happens on v3.4.3.

https://play.tailwindcss.com/8L8o0VhDfr

The code is here:

<div class="grid grid-cols-3">
  <div class="-col-end-1">BROKEN</div>
  <div class="col-end-[-1]">WORKS</div>
</div>

I'm not sure if this is exactly a bug, because it is not explicitly described in the documentation, but it is a broken expectation (I've expected that to work for consistency).

@thecrypticace
Copy link
Contributor

I've added support for this and it'll be available in the next patch release for v3 (and the next alpha for v4). 👍

I'm planning to tag a patch release for v3 this week (probably tomorrow or Wednesday)

@thecrypticace
Copy link
Contributor

v3.4.4 has been released with the fix — you can see the Play now works too! ✨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants