Skip to content

borders: emit logical axis border widths (border-x/y-N)#162

Open
samoht wants to merge 1 commit into
mainfrom
border-axis-width
Open

borders: emit logical axis border widths (border-x/y-N)#162
samoht wants to merge 1 commit into
mainfrom
border-axis-width

Conversation

@samoht

@samoht samoht commented Jul 25, 2026

Copy link
Copy Markdown
Owner

border-x/border-y are 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, so border-x-4 / border-y-4 were unknown classes. This emits the logical form (border-inline-style: var(--tw-border-style); border-inline-width: Npx, and the block equivalent) and adds the 0/2/4/8 width 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.

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
samoht force-pushed the border-axis-width branch from f2def02 to c80752e Compare July 26, 2026 03:41
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 this pull request may close these issues.

1 participant