Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

docs: Explain parsing numbers with no digits after dot.#74

Open
ludofischer wants to merge 1 commit into
postcss:mainpostcss/postcss-value-parser:mainfrom
ludofischer:unit-parsing-docsludofischer/postcss-value-parser:unit-parsing-docsCopy head branch name to clipboard
Open

docs: Explain parsing numbers with no digits after dot.#74
ludofischer wants to merge 1 commit into
postcss:mainpostcss/postcss-value-parser:mainfrom
ludofischer:unit-parsing-docsludofischer/postcss-value-parser:unit-parsing-docsCopy head branch name to clipboard

Conversation

@ludofischer

Copy link
Copy Markdown

I want to add some explanations about unit() as I found surprising that with numbers such as 10. the unit contains the dot. These tests made me believe it is intentional. Then I found out that according to the official CSS spec, omitting the 0 after the dot is forbidden, so I hope I explain the intention behind this behaviour correctly.

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.