Skip to content

borders, svg: write a hinted width through whatever the value is - #762

Merged
samoht merged 3 commits into
text-length-hint-opaquefrom
width-length-hint-opaque
Sep 14, 2026
Merged

samoht merged 3 commits into
text-length-hint-opaquefrom
width-length-hint-opaque

Conversation

@samoht

@samoht samoht commented Sep 13, 2026

Copy link
Copy Markdown
Owner

A length hint says the bracket is a width, so outline-[length:red] and stroke-[length:red] are widths the browser then discards — Tailwind's token-stream contract. tw refused them outright, which drops the selector. On border- and outline- the style declaration travels with the raw width, so the rule still paints the style the class asks for. Follows #761.

Both cases were filed as known divergences rather than tested. Written as
assertions they fail on the parent commit, which refuses the classes where
the CLI writes the value through.
A length hint says the bracket is a width, so outline-[length:red] and
stroke-[length:red] are widths the browser then discards - Tailwind's
token-stream contract. tw refused them outright, which drops the selector,
so an element carrying one got nothing at all. On border- and outline- the
style declaration travels with the raw width, so the rule still paints the
style the class asks for.
@samoht
samoht force-pushed the width-length-hint-opaque branch from 6f75f26 to 0f5ded4 Compare September 13, 2026 19:26
@samoht
samoht merged commit 3632d69 into main Sep 14, 2026
3 checks passed
@samoht
samoht deleted the width-length-hint-opaque branch September 14, 2026 09:57
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