Skip to content

sizing: accept a bare-number arbitrary aspect ratio#175

Open
samoht wants to merge 1 commit into
mainfrom
aspect-bracket-number
Open

sizing: accept a bare-number arbitrary aspect ratio#175
samoht wants to merge 1 commit into
mainfrom
aspect-bracket-number

Conversation

@samoht

@samoht samoht commented Jul 26, 2026

Copy link
Copy Markdown
Owner

A bare-number arbitrary aspect ratio (aspect-[1.333]) produced no rule: the arbitrary bracket path went through the quarter-multiple X/Y scale parser, which rejects a single value. It now parses a bare positive number as a single-value aspect ratio (Ratio (n, 1.), which cascade minifies to just n), so aspect-[1.333] emits aspect-ratio: 1.333.

aspect-[1.333] produced no rule: the arbitrary bracket only parsed an X/Y
ratio through the quarter-multiple scale. Parse a bare positive number as a
single-value aspect-ratio, which minifies to just the number.
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