Skip to content

properties: add the logical axis border-width shorthands#198

Merged
samoht merged 1 commit into
mainfrom
logical-border-width
Jul 26, 2026
Merged

properties: add the logical axis border-width shorthands#198
samoht merged 1 commit into
mainfrom
logical-border-width

Conversation

@samoht

@samoht samoht commented Jul 25, 2026

Copy link
Copy Markdown
Owner

border-inline-width and border-block-width (the logical axis border-width shorthands, <line-width>{1,2}) had no typed representation. This adds Css.border_inline_width/Css.border_block_width and the logical_border_width type, mirroring the existing logical_border_color machinery across the property GADT, parser, printer, normaliser, shorthand expansion and variable scanner. It unblocks downstream callers needing axis border widths (for example a border-x/y-N utility, which maps to border-inline-width/border-block-width).

border-inline-width and border-block-width (one or two <line-width>
values) had no typed representation, so an axis border width could not be
parsed, printed or normalised. Add both with a new logical_border_width
type mirroring logical_border_color, wired across the property GADT,
parser, printer, normaliser, shorthand and variable scanner.
@samoht
samoht force-pushed the logical-border-width branch from 9f72376 to cbcd18f Compare July 25, 2026 23:10
@samoht
samoht merged commit 6799611 into main Jul 26, 2026
5 checks passed
@samoht
samoht deleted the logical-border-width branch July 26, 2026 03:18
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