Skip to content

Require fractional digits after decimal points - #66

Open
ldm0 wants to merge 1 commit into
linebender:mainfrom
lexmount:feat/strict-path-numbers
Open

ldm0 wants to merge 1 commit into
linebender:mainfrom
lexmount:feat/strict-path-numbers

Conversation

@ldm0

@ldm0 ldm0 commented Sep 30, 2026

Copy link
Copy Markdown

The shared number parser currently allows an empty fractional part, accepting inputs such as 0., 23.e2, 23.px, and 23.deg.

Require at least one digit after a decimal point, matching CSS number syntax and the SVG 2 path grammar. This intentionally rejects previously accepted spellings across existing parser entry points without adding public APIs or configuration.

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