Skip to content

color: write a bracket no reader took into text- and outline-'s colour - #763

Merged
samoht merged 3 commits into
width-length-hint-opaquefrom
unknown-hint-colour
Sep 14, 2026
Merged

samoht merged 3 commits into
width-length-hint-opaquefrom
unknown-hint-colour

Conversation

@samoht

@samoht samoht commented Sep 13, 2026

Copy link
Copy Markdown
Owner

The colour is each family's last resort, so text-[notacolour] and outline-[foo:red] are declarations the browser discards rather than refusals — Tailwind's token-stream contract. Refusing dropped the selector. The seven other colour families still refuse the same brackets; an opacity modifier over a non-colour also stays refused, because cascade's colour types hold colours rather than token streams. Follows #762.

These were filed as known divergences rather than tested, and the
malformed-hex loop pinned tw's refusal for nine families where the CLI
writes the value through in all nine. Written as assertions they fail on
the parent commit.
The colour is each family's last resort, so text-[notacolour] and
outline-[foo:red] are declarations the browser discards rather than
refusals - Tailwind's token-stream contract. Refusing dropped the
selector, so an element carrying one got nothing at all.

An opacity modifier over a value that is not a colour stays refused: the
CLI writes a color-mix() around the raw token, and cascade's colour types
hold colours rather than token streams.
@samoht
samoht force-pushed the unknown-hint-colour branch from 35f695e to ea72807 Compare September 13, 2026 19:26
@samoht
samoht merged commit 3632d69 into main Sep 14, 2026
3 checks passed
@samoht
samoht deleted the unknown-hint-colour 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