Skip to content

position: support negative and improper fractions#172

Merged
samoht merged 1 commit into
mainfrom
position-neg-fractions
Jul 26, 2026
Merged

position: support negative and improper fractions#172
samoht merged 1 commit into
mainfrom
position-neg-fractions

Conversation

@samoht

@samoht samoht commented Jul 26, 2026

Copy link
Copy Markdown
Owner

Negative position fractions (-left-6/5, -inset-x-1/2, -top-1/3, …) produced no rule, and improper fractions (6/5) were rejected by an n < m guard. This adds Neg_*_fraction constructors across the inset/inset-x/top/right/left families (negating the percentage) and drops the n < m restriction, so -left-6/5 emits left: -120%, matching Tailwind.

-left-6/5, -inset-x-1/2, -top-1/3 and the like produced no rule: only
positive proper fractions parsed. Add Neg_*_fraction across
inset/inset-x/top/right/left (negating the percentage), and drop the n < m
guard so an improper fraction resolves past 100% (6/5 -> 120%), matching
Tailwind.
@samoht
samoht merged commit bb3082f into main Jul 26, 2026
2 checks passed
@samoht
samoht deleted the position-neg-fractions branch July 26, 2026 20:47
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