Skip to content

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

Open
ludofischer wants to merge 1 commit into
postcss:mainfrom
ludofischer:unit-parsing-docs
Open

docs: Explain parsing numbers with no digits after dot.#74
ludofischer wants to merge 1 commit into
postcss:mainfrom
ludofischer:unit-parsing-docs

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

1 participant