Add items-baseline-last utility#13888
Merged
philipp-spiess merged 2 commits intotailwindlabs:mainfrom Mar 17, 2025
Merged
Conversation
2d88b6f to
06cc692
Compare
06cc692 to
46e0e08
Compare
46e0e08 to
5b3098e
Compare
5b3098e to
d7e8acd
Compare
items-first-baseline and items-last-baseline utilities - v4items-baseline-last utility
d7e8acd to
2aff552
Compare
philipp-spiess
approved these changes
Mar 17, 2025
Contributor
philipp-spiess
left a comment
There was a problem hiding this comment.
Hey! Thanks for your contribution. We want to land this in Tailwind CSS v4.1 so I've gone ahead and updated the PR and put it behind a feature flag for now. 👍
I did make some changes to call it items-baseline-last and removed the start-equivalent since it's the default for items-baseline anyways. I added last as a suffix for consistency with our plans with the safe-alignment APIs but note that we might change the name before the actual release.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds the
items-first-baselineanditems-last-baselineutility classes that can controlbaseline-positionfor the align-items property.Browser support:
first baseline: https://caniuse.com/?search=align%20items%3A%20first%20baselinelast baseline: https://caniuse.com/?search=align%20items%3A%20last%20baselineThe feature were requested multiple times:
A special plugin in
tailwind.config.jscan be used as an existing workaround:V3 counterpart PR: #13887