borders: emit logical axis border widths (border-x/y-N)#162
Open
samoht wants to merge 1 commit into
Open
Conversation
border-x/y are logical axis borders in v4, but tw painted the two physical edges (border-left/right-*) and had no numeric axis widths, so border-x-4 / border-y-4 were unknown. Emit border-inline/block-style plus border-inline/block-width, and add the 0/2/4/8 width steps. Depends on cascade's border_inline_width / border_block_width.
samoht
force-pushed
the
border-axis-width
branch
from
July 26, 2026 03:41
f2def02 to
c80752e
Compare
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.
border-x/border-yare logical axis borders in v4 (border-inline-*/border-block-*), but tw painted the two physical edges (border-left/right-*) and had no numeric axis widths, soborder-x-4/border-y-4were unknown classes. This emits the logical form (border-inline-style: var(--tw-border-style); border-inline-width: Npx, and the block equivalent) and adds the0/2/4/8width steps, matching the reference byte-for-byte.Depends on cascade adding
Css.border_inline_width/Css.border_block_width(samoht/cascade#198); CI stays red until that lands and is pinned.